Mid1 Revision


Published on

Published in: Technology, Education
  • Hi thank you so much for the content. This has really helped me study for my OS course at university. A small request, do you have a link to higher resolution version of the mind map please? As I can tell it is very useful but I am having difficulty read it.

    Many thanks,

    Are you sure you want to  Yes  No
    Your message goes here
  • I can not open this folder
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Mid1 Revision

  1. 1. Mid#1 Revision
  2. 2. Quick Revision
  3. 3. CH1 Mind map
  4. 4. Ch2 Mind map
  5. 5. Sample Exam
  6. 6. Types of Questions <ul><li>Short Answers (essay) </li></ul><ul><li>True/False </li></ul><ul><li>MCQ </li></ul><ul><li>Problems </li></ul><ul><li>Code to trace </li></ul>
  7. 7. Short Answer <ul><li>Q: what is the benefit of using the TOP command? </li></ul><ul><ul><li>it is useful for showing which processes are consuming the most OS resources at any time. </li></ul></ul><ul><li>Q: What is the difference between heap and stack? </li></ul><ul><ul><li>Stack: for keeping track of subroutine calls. </li></ul></ul><ul><ul><li>Heap: for Intermediate data computation. </li></ul></ul>
  8. 8. Short Answers <ul><li>Define a monolithic kernel and compare it to a microkernel? </li></ul><ul><li>A monolithic kernel essentially is designed to have all the system services encapsulated in one module with a tight communication and sharing of structures between the individual OS components. As opposed to a microkernel which takes the different tact of providing a set of minimal functions in the kernel and implement higher level OS features in other modules (running either in user mode or kernel mode). As monolithic kernel if it can be made bug free can on average perform better than a microkernel system that has some additional communication overhead between components. </li></ul>
  9. 9. Short Answers <ul><li>What is the purpose of interrupts? What are the differences between a trap and an interrupt? Can traps be generated intentionally by a user program? If so, for what purpose? (from your textbook) </li></ul><ul><li>Answer: An interrupt is a hardware-generated change-of-flow within the system. An interrupt handler is summoned to deal with the cause of the interrupt; control is then returned to the interrupted context and instruction. A trap is a software-generated interrupt. An interrupt can be used to signal the completion of an I/O to obviate the need for device polling. A trap can be used to call operating system routines or to catch arithmetic errors. </li></ul>
  10. 10. True or False <ul><li>Process scheduler selects an available process for program execution on the CPU. The operating system uses short term scheduler to schedule processes for the first few hours after booting a machine. Afterwards, it uses the long term scheduler. The specific durations to use the short term and long term scheduler can be configured while building the kernel. True or False? </li></ul>
  11. 11. MCQ <ul><li>Which context switch is faster? </li></ul><ul><ul><li>Between threads. </li></ul></ul><ul><ul><li>Between processes. </li></ul></ul><ul><li>A process created by using the fork() system call in UNIX </li></ul><ul><ul><li>Shares its address space with its parent. </li></ul></ul><ul><ul><li>Gets an identical copy of the address space of its parent. </li></ul></ul>
  12. 12. Problems <ul><li>In a short-term scheduler it takes 10ms to decide to execute a process for 50ms, what percent of the CPU time is being wasted by scheduling time? </li></ul><ul><li>10/(50+10)=6 % </li></ul><ul><li>Code to Trace - similar to what has been covered in the Tutorial. </li></ul>