Operating Systems and Systems Software (CS2100) End Semester Jul 2024 Question Paper
RV University End Semester exam for Operating Systems and Systems Software (CS2100), held Jul 2024, semester 3, with 18 questions. Also searched as OS. Last updated 2026-11-14.
Questions
2. No further clarifications will be provided during the examination. You can mention your assumptions, if any
1. Give any of the two most important responsibilities of an OS with a very brief explanation for each.
3. What happens when the below instructions are executed? system("Is -l");printf("I have executed system() call ");
4. What is the purpose of the 'kill' command in Ubuntu? Give a sample invocation of this command.
5. What is the major difference between pthreadexit() and exit() system calls?
6. Briefly explain about the spinlock.
7. Assume that you have kept doc1.pdf and doc2.pdf open on your computer using Adobe Acrobat. You are also viewing RVU website using Chrome browser.Draw and briefly explain the layout of your computer's entire main memory with the images of what you are likely to have in them.Note:
8. a. Draw the picture of all valid state transitions of processes having the following states:New, Ready, Running, Blocked, Suspend and Exit.
9. What is the significance of SUSPEND state? When does a process move from SUSPEND state to READY state?
10. Draw the Gantt chart if the SRTF scheduler is running in the system. Process Id Arrival time Burst time P1 0 9 P2 1 4 P3 2 9
11. Assume that all the below five processes have become ready at time zero. If they are scheduled as shown below, compute the average waiting time, and average turn around time.
12. What is a Process Control Block? Explain about any two entries in them.
13. Explain any two responsibilities of memory management system.
14. Explain what happens when the below function is successfully executed. pthreadcreate(&threadid, NULL, threadfunction, (void )message); Note: Explain about the purpose of each parameter.
15. Explain what happens when the below code is executed. !/bin/bash echo "Add two numbers passed to the script" num1=1 num2=2 echo "Values in num1 and num2 are num1 and num2" let sum=(num1 + num2) echo "The sum of the numbers passed is sum"
16. When the following code executes, what will be printed? Note: You can assume that always the parent process gets a chance to run before the child processes, after any fork() call. printf("Start of Q16 "); fork(); printf("After the first fork() "); fork(); printf("After the second
17. Ready queues of three priority levels with processes in them are shown below. Within the same priority level, LIFO is the scheduling used. Assume that the currently running process P5 creates two new processes P8 followed by P9 both with Priority 1. Assume, a non-preemptive sched
18. Explain along with msgs output by this program. Assume that it runs fine. void threadFn1(void arg); void threadFn2(void arg); int main(){ void result1; void result2; pthreadt id1, id2; pthreadcreate(&id1, NULL, threadFn1, "Hi once"); pthreadcreate(&id2, NULL, threadFn2, "Hi again
More Operating Systems and Systems Software papers