0% found this document useful (0 votes)
146 views8 pages

OS Assignment 1 Answers

The document contains questions and answers about operating systems. It discusses topics like what an operating system is and its objectives, advantages of symmetric multiprocessing, characteristics of symmetric multiprocessor systems, definitions of multiprogramming and time-sharing, what real-time systems are, and comparisons of memory and storage as well as cache memory and RAM. Diagrams are also included to illustrate concepts like instruction execution and memory hierarchies.

Uploaded by

Star Library
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
146 views8 pages

OS Assignment 1 Answers

The document contains questions and answers about operating systems. It discusses topics like what an operating system is and its objectives, advantages of symmetric multiprocessing, characteristics of symmetric multiprocessor systems, definitions of multiprogramming and time-sharing, what real-time systems are, and comparisons of memory and storage as well as cache memory and RAM. Diagrams are also included to illustrate concepts like instruction execution and memory hierarchies.

Uploaded by

Star Library
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

OS Assignment 1

Model Answers

level 1 ‫ لطلبة‬STAR ‫متاح في مكتبة‬

Accounting II 1-6
OB 1-5
IS 1-4
OS 1-3
PE 1&2
English 1 1&2

Call Center: 01114364363


Chapter 1: Operating Systems Overview

Chapter 1 Questions Page 39

Question 1: What is OS and what are its objectives?

It is a program that controls the execution of application programs and acts


as an interface between applications and the computer hardware.
OS objectives:

Convenience OS makes a computer more convenient to use by


providing user interface.

Efficiency OS allows the computer system resources to be used in an


efficient manner. Some examples of computer resources
include printers, memory, processors and so on.

Ability to OS should be constructed in a way that permit effective


evolve development, testing, and introduction of new system
functions without interfering with existing service.

Sheet 1 OS
level 1 ‫ لطلبة‬STAR ‫متاح في مكتبة‬
Accounting II 1-6
OB 1-5
IS 1-4
OS 1-3
PE 1&2
English 1 1&2
Question 2: SMP has a number of potential advantages over
uniprocessor architecture. What are these advantages?

• SMP has a number of potential advantages over uni-processor

architecture, including the following:

➢ Performance

➢ Availability
➢ Incremental growth

➢ Scaling

Sheet 3 OS

Question 3: what are the characteristics of symmetric


multiprocessor?

• It is a type of parallel processing (multiprocessing).


• A symmetric multiprocessor can be defined as a standalone computer
system that has multiple processors.
• These processors share the same main memory and I/O facilities,
interconnected by a communications bus or other internal connection
scheme.
• All processors can perform the same functions (hence the term
symmetric).
• The OS of a SMP schedules processes or threads across all of the
processors.

Sheet 3 OS
Question 4: Draw a figure showing the memory hierarchy?

Sheet 1 OS
Question 5: What is multiprogramming?

• Multiprogramming is a technique used to execute a number of


programs simultaneously by a single processor.
• In multiprogramming, number of processes reside in main memory a
time.
• The OS picks and begins to execute one of the jobs in main memory.
• If any I/O wait happened to a process, then CPU switches from that job
to another one. Hence CPU is not at any time.

Sheet 3 OS
Question 6: What is time-sharing?

• Time sharing is a logical extension of multiprogramming.

• In this technique, multiple jobs are executed by switching the CPU


between them.

• The CPU time is shared by different processes, so it is called as "Time

sharing Systems".

• Time sharing provides each user with small portion of time shared
computer. A job is swapped in and out of memory to the disk.

• Time sharing systems can share I/O devices, and many other
resources.

Sheet 3 OS

Question 7: What is real-time systems?

• Real time systems often used as a control device in a dedicated

application such as controlling scientific experiments, medical


imaging systems, industrial control systems, and some display

systems.

• These systems are well-defined fixed-time constraints. Real-Tine

systems may be either hard or soft real-time.

Sheet 3 OS
Question 8: Draw a figure for instruction execution with and without
interruption.

The Execution process with interruption:

The Execution Process without interruption.

Sheet 2 OS
General Questions

Q1) Page 40: compare between storage and memory devices


with respect to speed, storage, and frequency of access.

Memory • RAM contains the processes that are ready for execution.
• The storage requirements of the processes are larger
than the size of the main memory.
• Main memory stores data and programs. This memory is
typically volatile; that is, when the computer is shut down,
the contents of the memory are lost.
• Main memory is also referred to as real memory or primary
Memory.

Storage • In contrast of the main memory, the contents of secondary


storage, such as the disk, are retained even when the
computer system is shut down..
• The secondary storage includes media
like CDs or DVDs, or physical devices, such as flash
memory drives or external hard drives.
• Older computer systems also used floppy disks or magnetic
tapes for secondary storage.

Sheet 2 OS

Points
Q1) Page 199: compare between Cache memory and
RAM.
• RAM (Random Access Memory) is a volatile memory which is used by
the CPU as the Primary Memory of the system. CPU stores frequently
used data of the programs running at a moment in RAM as RAM is
faster than storage devices, this helps the CPU to work faster.
• Cache memory is faster than the RAM but comes with very small
capacity. CPU stores more frequently used data in it so that the CPU
can access these data faster.
• Both RAM and cache memory are used with the same target which is
speeding up tasks.
RAM Cache Memory
Read/Write speed of RAM is Read/Write speed of cache
slower than Cache Memory memory is faster than RAM
RAM is less expensive than Cache Memory is more
Cache Memory expensive than RAM
RAM is used to store less Cache Memory is used to store
frequent data more frequent data
CPU reads RAM after reading CPU reads Cache Memory before
Cache Memory reading RAM
RAM is generally internal Cache Memory can be internal
and external both

Sheet 2 OS

01284647550

STAR Library
https://www.facebook.com/starlibrary1/

You might also like