Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Processes and threads

37 views
Skip to first unread message

Narayan Prasad Pokhrel

unread,
Nov 8, 2013, 4:40:33 PM11/8/13
to
The first interception of the signal SIGINT (ctrl-c) the thread from the call-back function is to be created and launched. The second interception shall cause the program to exit. Moreover, the program shall have the following specification:

1. Program shall notify the moment of start and the moment of termination.
2. On start-up program shall display ID of the process as well as ID of the main thread.
3. Program shall notify own status and shows the progress.

The thread call-back function shall follow the specification:

1. Function shall notify the moment of start and the moment of termination
2. On start-up, function shall display ID of the current process and ID of the thread
3. Thread shall run for defined period of time. The period of time shall be defined at random from the range between 10 and 20 seconds.
Call-back function shall display a message containing the ID of the process, the ID of the thread and the own progress.
0 new messages