You are on page 1of 6

Tutorial 1

1. What is an Operating System?


__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
2. What are the important functions of an operating System?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
3. What are the three components of Linux Operating System?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
4. Operating systems keep evolving over the period of time. List all the
types of an OS during the evolving period.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
5. Differentiate between multi-tasking and multi-programming.
MULTI-TASKING

MULTI-PROGRAMMING

6. What is an interrupt.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
7. How multiple interrupts are dealt with?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________

8. What is a cache?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
9. What is the difference between multi-processor and multi-core system.
MULTI-PROCESSOR SYSTEM

10.

MULTI-CORE SYSTEM

In a CPU, cache access time is 500ns and main memory access

time is 2 s. If a block if found, on average, 90% of the time in cache,


what is the average access time.

11.

A DMA module is transferring characters to main memory from an

external device transmitting at 8K bits per second (bps). The processor


can fetch instructions at the rate of 1 million instructions per second. By
how much will the processor be slowed down due to the DMA activity?
Ignore data read/write operations and assume the processor only fetches
instructions.

12.

A computer has a cache, main memory, and a disk used for virtual

memory. If a referenced word is in the cache, 20 ns are required to

access it. If it is in main memory but not in the cache, 60 ns are needed
to load it into the cache (this includes the time to originally check the
cache), and then the reference is started again. If the word is not in main
memory, 12 ms are required to fetch the word from disk, followed by 60
ns to copy it to the cache, and then the reference is started again. The
cache hit ratio is 0.9 and the main-memory hit ratio is 0.6.What is the
average time in ns required to access a referenced word on this system?

13.
Define a process.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
14.
List all the possible states of a process.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
15.
What are the elements of PCB?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________

16.

Describe the three state process model, describe what transitions

are valid between the three states, and describe an event that might
cause such a transition.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
17.
What is the function of the ready queue?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
18.
What is the relationship between threads and processes?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
19.

Describe how a multi-threaded application can be supported by a

user-level threads package. It may be helpful to consider (and draw) the


components of such a package, and the function they perform.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
20.

Name some advantages and disadvantages of user-level threads.


ADVANTAGES

DISADVANTAGES

21.
What is the function of dispatcher?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
22.
What is swapping and what is its purpose?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
23.
Why do we need two modes (user and kernel)?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
24.
What are the steps performed by an OS to create a process?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
25.
What is the difference between interrupt and trap?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
26.
List mechanisms for interrupting an execution of a process.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
27.

What is the difference between mode switch and process switch?

__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
28.
What is a thread?
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
29.

List four basic operations associated with the change is thread

state.
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
30.
What are the key benefits of threads compared to process:
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________
31.
Define ULT advantage over and KLT
__________________________________________________________________________
__________________________________________________________________________
__________________________________________________________________________

You might also like