Time left:

[All Quizzes] → [Linux System Programming] → [Processes and Threads]


1. ► Processes must acquire a lock before modifying a shared data-structure.

A.
B.

2. ► Zombie processes are those whose parents have died.

A.
B.

3. ► General signals do not have a time-guarantee for delivery.

A.
B.

4. ► It is possible to define a *payload data* for signals.

A.
B.

5. ► wait function can be used to wait on at most one child.

A.
B.

6. ► The maximum nice value which a process can have is 30.

A.
B.

7. ► Init process on UNIX is only responsible for starting new processes.

A.
B.

8. ► A thread is a light-weight process.

A.
B.

9. ► One cannot register a handler on the SIGTERM signal.

A.
B.

10. ► Threads can access all the data of their parent process.

A.
B.

11. ► pthread_join will wait for all the threads to complete before returning.

A.
B.

12. ► fork on Linux is not very efficient and hence vfork should be used.

A.
B.

13. ► Race conditions and deadlocks have due to same reason.

A.
B.

14. ► setjmp and longjmp do not save the context before making the jump, they are analogus to a non-local go to.

A.
B.

15. ► One cannot register a handler on the SIGKILL signal.

A.
B.

16. ► dlsym function checks for type mismatch before assigning it to the function pointer and will fail if the types mismatch.

A.
B.

17. ► sigsuspend takes as input the inverse of the mask to be applied to the incoming signals.

A.
B.

18. ► system function is identical to exec barring the way the arguments are passed to the underlying command.

A.
B.

19. ► It is not possible to pass arguments to the functions registered using atexit call.

A.
B.

20. ► Daemon processes must leave control of the terminal from which they were launched.

A.
B.


© 2016 VirtuQ™ Education All right reserved. | Terms of Use | Privacy Policy