Mid1  Revision
Upcoming SlideShare
Loading in...5
×
 

Mid1 Revision

on

  • 5,039 views

 

Statistics

Views

Total Views
5,039
Views on SlideShare
5,023
Embed Views
16

Actions

Likes
0
Downloads
341
Comments
2

4 Embeds 16

http://www.slideshare.net 12
http://www.openx.org 2
http://www.techgig.com 1
http://www.techgig.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • 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,

    CS
    Are you sure you want to
    Your message goes here
    Processing…
  • I can not open this folder
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mid1  Revision Mid1 Revision Presentation Transcript

  • Mid#1 Revision
  • Quick Revision
  • CH1 Mind map
  • Ch2 Mind map
  • Sample Exam
  • Types of Questions
    • Short Answers (essay)
    • True/False
    • MCQ
    • Problems
    • Code to trace
  • Short Answer
    • Q: what is the benefit of using the TOP command?
      • it is useful for showing which processes are consuming the most OS resources at any time.
    • Q: What is the difference between heap and stack?
      • Stack: for keeping track of subroutine calls.
      • Heap: for Intermediate data computation.
  • Short Answers
    • Define a monolithic kernel and compare it to a microkernel?
    • 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.
  • Short Answers
    • 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)
    • 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.
  • True or False
    • 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?
  • MCQ
    • Which context switch is faster?
      • Between threads.
      • Between processes.
    • A process created by using the fork() system call in UNIX
      • Shares its address space with its parent.
      • Gets an identical copy of the address space of its parent.
  • Problems
    • 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?
    • 10/(50+10)=6 %
    • Code to Trace - similar to what has been covered in the Tutorial.