Operating Systems Questions

Q:

What is Dispatcher?

Answer

Dispatcher module gives control of the CPU to the process selected by the short-term scheduler; this involves: Switching context, Switching to user mode, Jumping to the proper location in the user program to restart that program, dispatch latency – time it takes for the dispatcher to stop one process and start another running.

Report Error

View answer Workspace Report Error Discuss

0 3588
Q:

What is fragmentation? Different types of fragmentation?

Answer

Fragmentation occurs in a dynamic memory allocation system when many of the free blocks are too small to satisfy any request. 


External Fragmentation: External Fragmentation happens when a dynamic memory allocation algorithm allocates some memory and a small piece is left over that cannot be effectively used. If too much external fragmentation occurs, the amount of usable memory is drastically reduced. Total memory space exists to satisfy a request, but it is not contiguous. 


Internal Fragmentation: Internal fragmentation is the space wasted inside of allocated memory blocks because of restriction on the allowed sizes of allocated blocks. Allocated memory may be slightly larger than requested memory; this size difference is memory internal to a partition, but not being used

Report Error

View answer Workspace Report Error Discuss

1 3531
Q:

What are the four layers that Windows NT have in order to achieve independence?

Answer

1.Hardware abstraction layer


2.Kernel


3.Subsystems


4.System Services.

Report Error

View answer Workspace Report Error Discuss

2 3512
Q:

What are cookies ?

Answer

Cookies are small pieces of information that are stored in a browser. It keeps track of user preference, like what sites are visited, what keywords are used, among others.

Report Error

View answer Workspace Report Error Discuss

3 3455
Q:

Which among the following are the components of windows registry?

A) Keys B) SubKeys
C) Values D) All the above
 
Answer & Explanation Answer: D) All the above

Explanation:

All the above listed are the components of Windows registry

Report Error

View Answer Report Error Discuss

Filed Under: Operating Systems

0 3340
Q:

What has triggered the need for multitasking in PCs?

Answer

1. Increased speed and memory capacity of microprocessors together with the support for virtual memory and


2. Growth of client server computing

Report Error

View answer Workspace Report Error Discuss

1 3338
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 3210
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 3152