Answer LABOS
Answer LABOS
Question 1
a) Compile the above source code and load it in the main memory. Provide the snapshot of
the compiled code and code loaded in the main memory
b) Create a single process, choose RR scheduling algorithm with time quantum of 5 seconds
with no-priority. Run the Process. Provide the evidence in the form of snapshot of such a
setting.
c) What is the value of “Total” ? Share the snapshot.
f) What is the PID and PPID of the processes and threads created?
0 1 2 3
PID
0 3 1 2
PPID
g) Represent the parent and child relationship using tree representation
Question 2
a) Compile the above source code and load it in the main memory. Provide the snapshot of
the compiled code and code loaded in the main memory.
b) Create a single process, choose RR scheduling algorithm with time quantum of 5 seconds
with no-priority. Run the Process. Provide the evidence in the form of snapshot of such a
setting.
c) How many processes and threads are created?
1 Process, 2 Threads
e) What is the PID and PPID of the processes and threads created?
1 2 3
PID
0 1 2
PPID
On Printing the data values of parent s1, s2 It Shows the value. Hence, we can say threads
uses the parent’s data area.