Time left:

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


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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.

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

A.
B.


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