Machine-translated by Google. Questions are authored in English.
Top

Discussion

What does the raise() function declared in signal.h do?

  • A.reports a synchronous signal
  • B.let's you specify handling of signals
  • C.reports a asynchronous signal
  • D.doesn't let you specify handling of signals

Answer: A

Correct answer: reports a synchronous signal

raise(sig) sends a signal to the running program itself, so it arrives synchronously at a known point in the code. Installing a handler is the job of signal(); asynchronous signals come from outside the program.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.