Important Operating System questions for Exams.

  1. Describe the Producer/Consumer problem.
  2. Describe the problems associated with producing a software solution to the producer/consumer problem.
  3. Show a possible solution to the above problem, stating any assumptions that you make. 
  4. Describe the four generations of computing and how operating systems developed as a result.
  5. There is some debate as to what will constitute a fifth generation computer. Assume such a computer is available. What do you think will differentiate it from the computers of today?What advances do you think need to be made in order to produce a fifth generation computer?
  6. Describe the following scheduling algorithm. 
    • Non primitive, First come first service
    • Round Robin
    • Shortest Job first  
  7. Given the following processes and burst times
Set of processes and burst time

Calculate the average wait time when each of the below scheduling algorithms is used?
Assume that a quantum of 8 is being used. 

  1. Describe the benefits of a mono-programming operating system.
  2. A company, using a multi-programming operating system, has 1 megabyte of memory. The operating system occupies 250K of memory and every process that is executed also requires 250K of memory. The processes have an average I/O wait time of 80%. The company ask you if they should invest in more memory and, if so, how much. What would you advise and why? Would your advice change if the company said they had made a mistake and the average I/O wait time was only 20%? If so,why?
  3. The buddy system is a memory management scheme that uses variable sized partitions. Explain the basic principle behind the buddy system.
  4. Assume a computer with a memory size of 256K, initially empty. Requests are received for blocks of memory of 5K, 25K, 35K and 20K. Show how the buddy system would deal with each request, showing the memory layout at each stage and the status of the lists at the end. After allocating all the processes, what would be the effect of the 25K process terminating and returning its memory.
  5. Describe and evaluate an alternative to the buddy system.
  6. Every file in a filing system has a set of attributes (read only, date created etc.). Assume a filing system allows an attribute of temporary, meaning the creating process only uses the file during the time it is executing and has no need for the data thereafter. Assume the process is written correctly, so that it deletes the file at the end of its execution. Do you see any reason for an operating system to have temporary file attribute? Give your reasons. 



Feel free to contact the admin for any suggestions and help.