Operating System 50 Sheet
Operating System 50 Sheet
Operating System
50+ interview questions/answers
9. What are system calls, and how are they different from normal
function calls?
Process Management:
1. What is a microprocessor?
Preemptive Scheduling
Preemptive scheduling is used when a process switches from the
running state to the ready state or from the waiting state to the
ready state. The resources (mainly CPU cycles) are allocated to
the process for a limited amount of time and then taken away,
and the process is again placed back in the ready queue if that
process still has CPU burst time remaining. That process stays
in the ready queue till it gets its next chance to execute.
Non-Preemptive Scheduling
Non-preemptive Scheduling is used when a process terminates,
or a process switches from running to the waiting state. In this
scheduling, once the resources (CPU cycles) are allocated to a
process, the process holds the CPU till it gets terminated or
reaches a waiting state. In the case of non-preemptive scheduling
does not interrupt a process running CPU in the middle of the
execution. Instead, it waits till the process completes its CPU
burst time, and then it can allocate the CPU to another process.
• Pipes
• Message Queues
• Shared Memory
• Semaphores
• Sockets
• Remote Procedure Calls (RPC)
• Signals
Memory Management:
File Systems:
The FAT contains entries for each cluster on the disk, indicating
whether the cluster is available or allocated to a file. It is used
by the file system to allocate space for files and to locate the
clusters that contain a file's data.
Device Management: