Wednesday, April 3, 2013


CS604 Midterm paper

Question No: 3 ( Marks: 1 ) - Please choose one
The -------------- system call suspends the calling process.
► fork
► wait
► exec
► exit
Question No: 4 ( Marks: 1 ) - Please choose one
In --------- addressing, the recipient is not required to name the sender.
► Symmetric
► Asymmetric
► Both symmetric and asymmetric
► None of the given options
Question No: 5 ( Marks: 1 ) - Please choose one
-------- command gives a snapshot of the current processes.
► ps
► top
► who
► ls
Question No: 6 ( Marks: 1 ) - Please choose one
-------------- command to resume the execution of a suspended job in the foreground
► fg
► bg
► jobs
► kill
Question No: 7 ( Marks: 1 ) - Please choose one
You can use the ------------- command to display the status of suspended and background processes

► fg
► bg
► jobs
► kill
Question No: 8 ( Marks: 1 ) - Please choose one
You can terminate a foreground process by pressing --------------
► <Ctrl-A>
► <Ctrl-C>
► <Ctrl-Z>
► None of the given options
Question No: 9 ( Marks: 1 ) - Please choose one
A time sharing system is
► Multi tasking
► Interactive
► All of these
► Multi user
Question No: 10 ( Marks: 1 ) - Please choose one
The main characteristic of a Real time system is
► Efficiency (not sure)
► Large Virtual Memory
► Large secondary storage device
► Usability
Question No: 11 ( Marks: 1 ) - Please choose one
Shared libraries and kernel modules are stored in _____________ directory
► /bin
► /dev
► /boot
► /lib
Question No: 12 ( Marks: 1 ) - Please choose one
__________ scheduler selects the process from the job pool and put them in main memory.

► Long term
► Short term
► Medium term
► Swapper
Question No: 13 ( Marks: 1 ) - Please choose one
In indirect inter process communication, a sender ___ mention the name of the recipient.
► do
► do not
Question No: 14 ( Marks: 1 ) - Please choose one
A ______________ is an integer variable that, apart from initialization is accessible only through two standard atomic operations: wait and signal.
► Semaphore
► Monitor
► Critical region
► Critical section
Question No: 15 ( Marks: 1 ) - Please choose one
A semaphore that cause Busy-Waiting is termed as ___________.
► Spinlock
► Monitor
► Critical region
► Critical section
Question No: 16 ( Marks: 1 ) - Please choose one
The execution of critical sections must NOT be mutually exclusive
► True
► False
Question No: 17 ( Marks: 1 ) - Please choose one
The performance of Round Robin algorithm does NOT depends heavily on the size of the time quantum.
► True
► False
Question No: 18 ( Marks: 1 ) - Please choose one
The following requirement for solving critical section problem is known as ______________.
“There exists a bound on the number of times that other processes are allowed to enter their critical sections after a process has made a request to enter its critical section and before that request is granted.”
► Progress
► Bounded Waiting
► Mutual Exclusion
► Critical Region
Question No: 19 ( Marks: 1 ) - Please choose one
The critical section problem can be solved by the following except
► Software based solution
► Firmware based solution
► Operating system based solution
► Hardware based solution
Question No: 20 ( Marks: 1 ) - Please choose one
___________ is also called Swapper.
► Swap space
► Medium term scheduler
► Short term scheduler
► Long term scheduler
Question No: 21 ( Marks: 2 )
Write the formula/ procedure for calculating the waiting time in preemptive Shortest Job First scheduling.

Question No: 22 ( Marks: 2 )
What are the common data structures in Bakery Algorithm?
Boolean choosing [n];
Int number [n];
Question No: 23 ( Marks: 3 )
If a process exits and there are still threads of that process running, will they continue to run?
Question No: 24 ( Marks: 3 )
Wat are the important characteristics of TestAndSet? What will be its advantage.
Question No: 25 ( Marks: 5 )
Considering the Resource sharing feature of thread, what do you think is ‘resource sharing’ an advantage of a thread or disadvantage of a thread. Explain yours answer briefly.
Question No: 26 ( Marks: 5 )
Analyze the given algorithm proposed to solve the critical section problem. Identify the shortcomings of this algorithm.
do{
while(turn!=j);
critical section
turn=j;
remainder section
} while(1)



No comments:

Post a Comment