Final Term Examination
Lab BSCS OS
Time Allowed: till deadline Total
Marks: 30
Q1: Inter-Process
Communication is the Way to exchange information or massages between two
processes using build-in functions in C language. You are instructed to shared
information you can call it as a Secret Massage between two processes. You must
create two processes in such a way that the Child process should Write a message
and Parent Process should read the message and display it with the String “Parent
process wrote this on my console”. (10 Marks)
Q2: In this Question, you must implement the concept
of Multitasking on the user-defined function for an instant, you can create some
void type of function which prints the ID of the tasks (threadID) and String
such as “I’m number %id thread”. Please note you must create 10 threads of the same user-defined function which will print different threadIDs every time it
calls. (5
Marks)
Q3: A Process Scheduler schedules different processes to be
assigned to the CPU based on scheduling algorithms. We have read a different
type of processes Scheduling Algorithms and have seen their conceptual
implementations as well. You are instructed to implement a First come first serve
scheduling algorithm using the language of your choice. Your result will be
displayed all information such as Process ID, Arrival Time, Burst Time, Waiting
Time, Turnaround Time, etc. on the console. (5 Marks)
Q4: explain and give example for each non-preemptive and
preemptive scheduling algorithm and also Implement Round robin and shortest
Remaining time scheduling algorithms. (10 Marks)
Post a Comment