Operating Systems Questions

Q:

Describe the Buddy system of memory allocation.

Answer

Free memory is maintained in linked lists, each of equal sized blocks. Any such block is of size 2^k. When some memory is required by a process, the block size of next higher order is chosen, and broken into two. Note that the two such pieces differ in address only in their kth bit. Such pieces are called buddies. When any used block is freed, the OS checks to see if its buddy is also free. If so, it is rejoined, and put into the original free-block linked-list.

Report Error

View answer Workspace Report Error Discuss

1 3356
Q:

What is the difference between microkernel and macro kernel?

Answer

Micro-kernal : A micro-kernel is a minimal operating system that performs only the essential functions of an operating system. All other operating system functions are performed by system processes.


Monolithic : A monolithic operating system is one where all operating system code is in a single executable image and all operating system code runs in system mode.

Report Error

View answer Workspace Report Error Discuss

0 3326
Q:

Explain the meaning of mutex.

Answer

Mutex is the short form for ‘Mutual Exclusion object’. A mutex allows multiple threads for sharing the same resource. The resource can be file. A mutex with a unique name is created at the time of starting a program. A mutex must be locked from other threads, when any thread that needs the resource. When the data is no longer used / needed, the mutex is set to unlock.

Report Error

View answer Workspace Report Error Discuss

0 3305
Q:

What are the sub-components of I/O manager in Windows NT?

Answer

- Network redirector/ Server


- Cache manager.


- File systems


- Network driver


- Device driver

Report Error

View answer Workspace Report Error Discuss

0 3273
Q:

In the context of memory management, what are placement and replacement algorithms?

Answer

Placement algorithms determine where in available real-memory to load a program. Common methods are first-fit, next-fit, best-fit. Replacement algorithms are used when memory is full, and one process (or part of a process) needs to be swapped out to accommodate a new program. The replacement algorithm determines which are the partitions to be swapped out.

Report Error

View answer Workspace Report Error Discuss

3 3259
Q:

Is Windows NT a full blown object oriented operating system? Give reasons.

Answer

No Windows NT is not so, because its not implemented in object oriented language and the data structures reside within one executive component and are not represented as objects and it does not support object oriented capabilities.

Report Error

View answer Workspace Report Error Discuss

2 3128
Q:

What are rings in Windows NT?

Answer

Windows NT uses protection mechanism called rings provides by the process to implement separation between the user mode and kernel mode.

Report Error

View answer Workspace Report Error Discuss

0 3098
Q:

What is a zombie?

Answer

When a program forks and the child finishes before the parent, the kernel still keeps some of its information about the child in case the parent might need it – for example, the parent may need to check the child’s exit status. To be able to get this information, the parent calls `wait()’; In the interval between the child terminating and the parent calling `wait()’, the child is said to be a `zombie’ (If you do `ps’, the child will have a `Z’ in its status field to indicate this.)

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

1 3066