What is priority inheritance?

Ankur Kulhari

Consider three jobs: Job Name Priority H High M Medium L Low Suppose H is blocked by L for some shared resource. The priority inheritance protocol requires that L executes its critical section at H’s (high) priority. As a result, M will be unable to preempt L and will be blocked. That is, the higher-priority job M must wait for …

What is spin lock?

Ankur Kulhari

Locks are used in operating system to reserve critical section resources for mutual exclusion. Suppose a task is running and a little time (execution time) is left for its completion, That is: The running time left for it is less compared to the time that would be taken in blocking it and context switching. Under this situation it is not …

What is the difference between Swapping and Paging?

Ankur Kulhari

Swapping is a technique, used by medium term scheduler to send processes in waiting state from main memory to backing storage (called swap-out) and to bring processes which are ready to execute back into main memory from backing storage. Paging is a technique of memory management to allocate non-contiguous memory to a process. A process is divided into pages and …

Compare short term scheduler, medium term scheduler and long term scheduler.

Ankur Kulhari

S.N. Long-Term Scheduler Short-Term Scheduler Medium-Term Scheduler It is a job scheduler It is a CPU scheduler It is a process swapping scheduler. Speed is lesser than short term scheduler Speed is fastest among other two Speed is in between both short and long term scheduler. It controls the degree of multiprogramming It provides lesser control over degree of multiprogramming …

Static vs Dynamic Loading

Ankur Kulhari

Selection of Static or Dynamic Loading is made by developer at the time of computer program being developed. In case of static loading, the complete program is compiled and linked without leaving any external program or module dependency at the time of compilation. With static loading, the absolute program (and data) is loaded into memory in order for execution to …

Accenture Interview Questions-I

Ankur Kulhari

What is Dynamic Memory Allocation, example? How C/C++ and Java are different to each other? C program of Bubble Sort. Program of sum of a series. What is Object Oriented Programming? What is encapsulation? What is Inheritance? What is polymorphism? What is abstraction? What is Runtime Polymorhism? What is BCNF in RDBMS? What are inner and outer joins? Explain with …

Operating Systems Interview Questions – Part IV

Ankur Kulhari

What is the purpose of an I/O status information? Ans:I/O status information provides info about which I/O devices are to be allocated for a particular process. It also shows which files are opened, and other I/O device state. What is multitasking? Ans:Multitasking is the process within an operating system that allows the user to run several applications at the same …

Operating Systems Interview Questions – Part III

Ankur Kulhari

How does swapping result in better memory management? Ans:During regular intervals that are set by the operating system, processes can be copied from main memory to a backing store, and then copied back later. Swapping allows more processes to be run that can fit into memory at one time. Give an example of a Process State. Ans:Process may be in …