Mark True or False for each statement below. 1. The Dining Philosophers problem is used to demonstrate the pattern of circular deadlock in concurrent programming. 2. In the Producer-Consumer problem, data is persistent and can be read multiple times and rewritten when necessary. 3. In the Producer-Consumer problem, multiple producers and consumers should be able to access the buffer concurrently. 4. The Readers-Writers problem deals with concurrent access to a bounded buffer where data is consumed as soon as it is read. 5. In the Producer-Consumer problem, semaphores can be used to prevent corrupt shared variables and avoid race conditions.
Mark True or False for each statement below. 1. Schedulers i…
Mark True or False for each statement below. 1. Schedulers in an operating system are divided into three types: long-term, medium-term, and short-term schedulers. 2. Multiprogramming allows a process to use the CPU while another performs I/O operations, improving CPU utilization. 3. The long-term scheduler is important for interactive operating systems because it handles user inputs promptly. 4. The CPU utilization in a multiprogramming system can vary significantly between theoretical models and actual performance. 5. The short-term scheduler decides which process will be executed next on the CPU and must do so very quickly, as multiple processes may need CPU time each second.
Mark True or False for each statement below. 1. Preemptive s…
Mark True or False for each statement below. 1. Preemptive scheduling allows the currently running process to continue executing without interruption until it finishes. 2. Shortest Remaining Time First (SRTF) is an example of a preemptive scheduling algorithm. 3. In Round Robin scheduling, each process runs until it completes without being preempted. 4. Real-time scheduling is divided into Static and Dynamic scheduling, where Static schedules tasks before execution and Dynamic schedules them as they arrive. 5. Lottery scheduling can ensure fairness. If each process receives an equal number of tickets they will have an equal chance to be selected based on a random draw of tickets.
Evaluate the following statements about memory and storage:…
Evaluate the following statements about memory and storage: The closer a type of memory is to the CPU, the faster it is but also the smaller in size. L1 cache is typically farther from the CPU than SSDs. The cost of memory typically increases the farther it is from the CPU. Strictly speaking, a kilobyte is equal to 1,000 bytes. But, sometimes, like in this course, we will use kilobytes to refer to 1024 bytes. A kibibyte is larger than 1000 bytes by 24 bytes.
Mark True or False for the Following Questions Hardware in…
Mark True or False for the Following Questions Hardware interrupts are used by devices to signal the OS that an operation, such as reading from a disk, is complete. The interrupt controller uses interrupt masks to manage multiple interrupt requests and ensures that only one interrupt is processed at a time. The interrupt controller sends the IRQ# to the CPU via the Bus so that it can be treated. Precise interrupts are treated after the current instruction is completed and before the next instruction begins, while imprecise interrupts may interrupt the execution of ongoing instructions. When servicing an interrupt, the CPU does not enter kernel mode; instead, it continues executing the current user-space instruction until the interrupt is finished.
Mark True or False for the Following Questions In the firs…
Mark True or False for the Following Questions In the first generation of operating systems, computers were highly reliable and did not require frequent maintenance. The Altair 8800’s Operating System implemented automated program loading. Multiprogramming allows the CPU to be less idle, for example by loading a new program while another is executing. During the second generation, computational systems were characterized by transistors and batch processing. Real-time operating systems are optimized for user interaction and feedback rather than strict timing constraints.
Listed below are general rules that help establish a suitabl…
Listed below are general rules that help establish a suitable testing environment for the test taker and for the proctor. Testing environment: A desk area that is free of papers and clutter. Uniform lighting and avoidance of strong lighting (electric light or sunlit window) in the direction the camera is pointing. Test Taker No headphones or ear plugs. No cell phones, tablets, or unauthorized materials (blank scratch paper is OK) No head gear or hair that obscures the eyes. No sound from radio or TV during the exam. No other persons in the room. Question: Which of the following situations provides the best testing environment for both the test taker and the proctor?
Select which of the following operations always require swit…
Select which of the following operations always require switching to Kernel Mode for execution. Handling Interrupts. Opening a web browser. Disk I/O operations. Memory Allocation.
Which of the following are TRUE for TCP: TCP is connection…
Which of the following are TRUE for TCP: TCP is connection less. Lost data is retransmitted. Packets may arrive out of order, but once received, are re-ordered before delivery to the receiving application. Data is delivered as datagram. Built on top of IP.
Select True or False for the following statements. The Shor…
Select True or False for the following statements. The Short Term Scheduler is responsible for maintaining memory load. The Long Term Scheduler prevents Batch systems from being overloaded. The Medium Term Scheduler selects which process will be allocated to the CPU.