0% found this document useful (0 votes)
881 views3 pages

RTS Objective Important Mid1 Questions

The document contains multiple choice questions about functions and concepts related to operating systems and real-time operating systems. It asks about functions for process termination (exit()), features of fork(), functions for random file access (lseek()), states of an RTOS (running), concepts that deal with task synchronization and data exchange (event registers), types of semaphores (counting semaphore), what a message queue is (a buffer-like object), states of a pipe (full), how to create a pipe (pipe), and how to prevent a signal from being delivered (ignore). It also contains fill-in-the-blank questions about how an RTOS schedules tasks (in a timely manner), what a scheduler determines (which

Uploaded by

hafeeza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
881 views3 pages

RTS Objective Important Mid1 Questions

The document contains multiple choice questions about functions and concepts related to operating systems and real-time operating systems. It asks about functions for process termination (exit()), features of fork(), functions for random file access (lseek()), states of an RTOS (running), concepts that deal with task synchronization and data exchange (event registers), types of semaphores (counting semaphore), what a message queue is (a buffer-like object), states of a pipe (full), how to create a pipe (pipe), and how to prevent a signal from being delivered (ignore). It also contains fill-in-the-blank questions about how an RTOS schedules tasks (in a timely manner), what a scheduler determines (which

Uploaded by

hafeeza
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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