Operating Systems Questions

Q:

How can you get/set an environment variable from a program?

Answer

Getting the value of an environment variable is done by using `getenv()’. Setting the value of an environment variable is done by using `putenv()’

Report Error

View answer Workspace Report Error Discuss

Subject: Operating Systems Exam Prep: GATE

2 3319
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 3280
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 3259
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 3238
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 3212
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 3102
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 3065
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 3037