Documente Academic
Documente Profesional
Documente Cultură
Q2) A system is having 4 processes P1, P2 and P3. And P4 These processes belong to two
different groups named as GP1 and GP2. The group weightage is 0.5 for both groups
.The process P1 and P3 belong to GP1 and P2,P4 belong to GP2. The base priority
for the Processes P1, P2, P3 and P4 is 32, 34, 34 and 36 respectively. Assume all
processes are processor bound and are ready to run. The priorities are calculated after
every second and between two priority calculations 80 clock ticks are generated.
For this system using Fair share scheduling algorithm show the tabular representation of
process execution sequence for 5 seconds of execution.
[8]
Q3. In a system there are three processes named P , Q and R . When the system starts, the process P
executes once then process Q executes twice and after this process R executes twice. The
process R cannot execute until process Q has executed twice and process Q can not execute
until process P has executed once . Once process P has executed it cannot execute again until
the process Q and R habe executed twice . The restriction mentioned above allows the process
P,Q and R to execute in following manner
Write the pseudo code for process P,Q and R using counting semaphore . Apart from semaphore
do not use any other shared variable for process synchronization. All the three processes access
the critical section in mutually exclusive manner .
[10]
a) List all the condition Under which, transition from running to ready state can occur ?
b) Why a transition from blocked suspended state to ready state is not allowed?
c) List the processor information required to be stored as part of context switch.
d) Why it is difficult to use disabling/ enabling of interrupt for process coordination?
e) List the 4 properties that a given solution for handling critical section should satisfy.
f) Give the names of two scheduling algorithms that can be lead to starvation
[1.5 *6]
****************