Professional Documents
Culture Documents
Sri Lanka Institute of Information Technology: MID Term Exam R.M.S.S Rathnayake IT19172774 MLB - WD - Y2S1 - 13.1
Sri Lanka Institute of Information Technology: MID Term Exam R.M.S.S Rathnayake IT19172774 MLB - WD - Y2S1 - 13.1
R.M.S.S Rathnayake
IT19172774
MLB_WD_Y2S1_13.1
2)
i) 4 process
Question 2
1)
i) 2 threads
III) The pthread join () function provides a basic process that allows a program to delay for a
thread to end. Instead, the program may opt to clean up services that the thread used after the
thread ends
2)
i) 85
ii) parent
iii) The wait() function will interrupt execution of the calling thread until status information
exists for one of its stopped child processes, or until a signal is transmitted whose purpose is
either to run a signal-catching function or to stop the process.
question 3
3)In multiprogramming I/O and CPU activities are overlapped to increase data throughput and
efficiency of CPU utilization. This is achieved by context switching of process, using CPU and
Processers.
4) In operating systems scheduling is the act of maximizing of CPU utilization . This is carried out
by the CPU and the I/O components of the operating systems using a CPU scheduling.
5) when a,