Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

1) ______function is used for normal process termination

a) fork()
b) exit()
c) wait3()
d) wait4() [ ]

2) fork () uses

a) copy-on-read
b) Copy-on-write
c) Copy-on-update
d) Copy_on_delte [ ]

3) The function used for random access of file

a) write()
b) lseek()
c) open()
d) close() [ ]

4) One of the states of RTOS is_________.

a) sleeping
b) reading
c) writing
d) running [ ]

5) Which deals with data exchange and synchronization among tasks?

a) pipes
b) event registers
c) memory
d) blocks [ ]

6) A semaphore that contains a counter with an upper bound__

a) binary semaphore
b) unary semaphore
c) ternary semaphore
d) Counting semaphore [ ]

7) A message queue is
a) Dequeue
b) Priority queue
c) Buffer like object
d) None of the above [ ]

8) Among the given options, which is state of pipe?

a) blocked
b) idle
c) full
d) running [ ]

9) The command to create pipe is

a) Create
b) Open
c) Pipe
d) Start [ ]

10) Which prevents a signal from being delivered?

a) block
b) wait
c) Ignore
d) Release [ ]

II Fill in the blanks


11. A real-time operating system (RTOS) is a program that schedules execution in a _______
(Timely manner)

12. A scheduler provides the algorithms needed to determine which _______executes when.
(Task)

13. _______is the ability of the operating system to handle multiple activities within set deadlines
(Multitasking)

14. Round-robin scheduling provides each task an _______ share of the CPU execution time (equal)

15. A _______ is an independent thread of execution that can compete with other concurrent tasks for
processor execution time.. (task)

16. The register, called an_______ is an object belonging to a task and consists of a group of binary event
flags used to track the occurrence of specific events (event register)

17. A _______ is a software interrupt that is generated when an event has occurred (signal)

18. _______ Installs a signal handler.(catch)

19. _______ creates a child process and block parent process.


(vfork )

20. _______ suspends execution of current process until a child as specified by pid arguments
has exited or until a signal is delivered. at that moment.
(waitpid)

You might also like