OS Practice Day 1

Generate an image showing various concepts of operating systems, including monolithic and microkernel architectures, CPU processes, memory management, and thread synchronization. Include visual metaphors like gears and networks to represent the complexity of operating systems.

Operating System Mastery Quiz

Test your knowledge on operating systems with our engaging quiz designed for enthusiasts, students, and professionals alike. Dive deep into various OS concepts and architectures as you answer questions spanning from basic principles to advanced topics.

  • 24 diverse questions
  • Multiple choice, checkboxes, and text responses
  • Instant feedback on your performance
  • Learn and improve your understanding of OS mechanics
24 Questions6 MinutesCreated by DebuggingFox234
Which of the following OS architectures demonstrates a separation of mechanism and policy?
Monolithic
Microkernel
Virtual Machine
Layered
In which of the following IO Paradigms does the CPU interact directly with the device?
Programmed/Polled
Interrupt Driven
DMA
Which of the following are valid state transitions
Running --> Blocked
Blocked --> Running
Running --> Ready
Ready --> Running
Blocked --> Ready
Ready --> Blocked
Do critical sections guarantee atomicity
True
False
Which of the following will require kernel mode
Initiate a system call
Accessing main memory
Inspecting CPU usage
Handling a runtime exception
Performing arithmetic
A CPU architecture has shared cache among CPU cores, which cache issue might happen?
Cache Incoherency
Cache Inconsistency
Select all that apply to thread types
User level threads are managed by the process
Kernel level threads must be ran in kernel mode
Kernel level threads are used for IO bound processes
User level threads have more overhead when context switching
What would be some possible benefits of using M-M hybrid threading model?
Is the code on the left considered a critical section, what about the code on the right? Explain.
Are there any problems with this code?
For implemeting a precedence constraint which of the following type of semaphore could prove useful
Blocking Semaphore
Counting Semaphore
Binary Semaphore
Given a page table with 2 levels, a memory access time of 20ns, A TLB access time of 5ns, what is the hit % needed to achieve an EAT of 30ns
87.5%
92.5%
95%
85%
The oldest page used is always the best page to replace
True
False
When the working set varies over time, it is better to use a global allocation policy
True
False
What happens at the end of this algorithm
A victim frame is chosen
No frame is chosen and the algorithm ends
Randomly pick a victim
Wait for one of the writes to finish and select
What is the use of instruction backups?
Explain what is demand paging and why it works
Which of the following is NOT an OS responsibility?
Assigning CPU time to processes
Preventing buffer overflow in user programs
Managing virtual memory for processes
Allocating and deallocating memory for processes
Controlling access to system resources
Comparing the Monolithic and Microkernel OS architectures, which of the following statements is true?
Microkernel architecture has better performance because it can leverage hardware resources better
Monolithic architecture has better system reliability
Microkernel components are more reusable, modular, and can evolve independently
Explain the concept of naive busy waiting and why it is not an ideal solution for process synchronization
In a uniprocessor environment, ignoring the possibility of preemption, which of the following scenarios would lead to a transition of execution context from user mode to kernel mode when running a user process? Check all apply.
Calls a file read library routine
Calls a floating-point calculation library routine
Calls a fork system call
A mouse click event occurs
Consider a graph with two processes and two resources. Process P1 is holding resource R1 and waiting for resource R2, and process P2 is holding resource R2 and waiting for resource R1. Is this a deadlock situation?
True
False
Consider the following C code segment and the comments in the code. What would be the most likely sequence of process state transitions of a process executing these statements? Explain each process state transition briefly. Ignore the New state after process creation, and use a process state model that has 4 states: ready, running, blocked, terminated, and assume it starts with a running state.
{"name":"OS Practice Day 1", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge on operating systems with our engaging quiz designed for enthusiasts, students, and professionals alike. Dive deep into various OS concepts and architectures as you answer questions spanning from basic principles to advanced topics.24 diverse questionsMultiple choice, checkboxes, and text responsesInstant feedback on your performanceLearn and improve your understanding of OS mechanics","img":"https:/images/course2.png"}
Powered by: Quiz Maker