136k views
5 votes
Which of the following would be an acceptable signal handling scheme for a multithreaded program? Deliver the signal to the thread to which the signal applies. Deliver the signal to every thread in the process. Deliver the signal to only certain threads in the process. All of the above

User Gabuchan
by
5.6k points

1 Answer

1 vote

Deliver the signal to the thread to which signal applies would be an acceptable signal handling scheme for a multi-threaded program.

Deliver the signal to the thread to which the signal applies.

Step-by-step explanation:

  • Multi-threading in programming is a programming model that allows a user to create multiple threads in a single program.
  • When the program executes, actually these threads execute in a certain order and the control signal [passes through each thread].
  • The signal is delivered only to that particular thread to which it applies.
  • Applying a signal to a thread which was not expecting it may cause errors in execution.
User Wm
by
5.2k points