Skip to main content
Question Protected by gnat
Question Unprotected by Mason Wheeler
formatting to emphasize that this sentence is a quote
Source Link

"To execute a system call, a program must execute a special trap instruction."

To execute a system call, a program must execute a special trap instruction.

Why is it called a "trap" instruction? What is the etymology of this usage of the word "trap"?

Is it related to the usual English word trap? Is something is getting "trapped" as in "unable to escape"?

"To execute a system call, a program must execute a special trap instruction."

Why is it called a "trap" instruction? What is the etymology of this usage of the word "trap"?

Is it related to the usual English word trap? Is something is getting "trapped" as in "unable to escape"?

To execute a system call, a program must execute a special trap instruction.

Why is it called a "trap" instruction? What is the etymology of this usage of the word "trap"?

Is it related to the usual English word trap? Is something is getting "trapped" as in "unable to escape"?

Question Protected by gnat
Tweeted twitter.com/StackSoftEng/status/1330979534125019137
Source Link
littleO
  • 419
  • 1
  • 4
  • 6

Why is it called a "trap" instruction?

"To execute a system call, a program must execute a special trap instruction."

Why is it called a "trap" instruction? What is the etymology of this usage of the word "trap"?

Is it related to the usual English word trap? Is something is getting "trapped" as in "unable to escape"?