Operating Systems -Questions (with Complete Solutions)
What three components is a computer made of ? correct answers I/O, CPU, Memory Where do programs become processes ? correct answers Main Memory What loads the operating system ? correct answers A boot program What controls the input and output ? correct answers Device controllers connected to a buss What is the main purpose of dual mode operation ? correct answers We don't want processes to be able to access hardware or mess with other processes. What are two main modes of operation ? correct answers Kernel and User Mode Who is allowed to use kernel mode ? correct answers the OS All modern operating systems worth talking about* are? correct answers Interrupt drive, multitasking operating systems Should you allow programs to control when to use kernel mode or only allow the OS to do it? correct answers Only allow the OS to do it! What are you allowed to do in user mode? (basic answer) correct answers Add subtract, compare, go to ...Basically assembly stuff What are you allowed to do in kernel mode? correct answers mess with hardware or other memory. It can tell you what memory does and doesn't belong to you. Only the OS can use this Operating system on behalf of user programs must do the kernel mode stuff. How does this happen? correct answers Interrupts! (Properly, these are really traps), OS receives the interrupt, services it, and returns control to the process. When does a program become a process? correct answers When it is loaded into memory and started! Who loads Programs into memory in order to turn them into processes? correct answers The OS What are the 6 main functionalists of the Operating System? correct answers • Load programs into memory to turn them into processes • Create, delete, suspend and resume processes • Schedule processes and threads to CPUs • Assign resources to processes • Provide synchronization between processes • Provide communication between processes
Document information
- Uploaded on
- September 14, 2023
- Number of pages
- 12
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers