trap

trap definition - computer

To respond to a particular condition in a running program; for example, to "trap an interrupt" means to wait for a particular interrupt to occur and then redirect the computer to execute an appropriate routine. An "error trap" tests for an invalid set of data. It then displays the correct error message and bypasses processing that data. A "debugging trap" looks for the execution of a particular instruction in order to immediately stop the program and analyze the status of the system at that moment.



Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments
Improve this definition.
Do you have more to add? Share your linguistic knowledge or observation.
/Register to save your comments.