CS604 Assignment 1 Solution 1 Spring 2013

No Comments

Question#01:
Let us point out some events that cause the kernel code to invoke in order to manage computer resources (like I/O devices memory and storage management) and control user programs to prevent errors and improper use of a computer system. Write their names.
Answer:

  Trap
Interrupt
System Call

Question#02:
Operating System “XYZ” installed on a computing machine. .”ABC” serves as an intermediary between the hardware of the system and users. During the execution of a program or process, CPU generates different signals. You have to identify how do theses signals are handled by the operating system “XYZ”?
Answer:
 Operating system can not handle of two  signals and these two signals are  “sigstop” and “sigkill”.These two signals have the main function i-e sigstip halt the execution and the sigkill do exit from the process. Otherwise operating system blocks the all coming signals. Operating system continues its work by handling the signals.


Question#03:
General Electric (GE) is leading electronic company .They have 10 thousand employees. At the end of each month they need to get payroll prints. Once pay roll data is submitted to computer, left running without human interaction. Being a student of operating system, you know OS is also scheduled the jobs. If there are numbers of jobs having same type and resource requirements that are ready to run. Keep in mind the above scenario, you need to identify in which system, these jobs are run easily.
In my point of view Batch system is suitable. To speed up processing, operators batched together jobs with similar needs, and ran them through the computers as a group. The major task of such a system is to transfer control automatically from one job to the next.

Question 4: 
Categorize the following examples into Interrupt, signal and traps:
1. Ali is typing Alphabets in notepad by hitting keystroke. Interrupt
2. Ayesha opening a folder from desktop by double clicking mouse. Interrupt
3. Ahmad write a code in c language, like a=b/0 Trap
4. Fatima is compiling a C program an error occursInvalid memory access or buffer overflow. Trap
5. While running a program ,you press . Signal

Next PostNewer Post Previous PostOlder Post Home

0 comments

Post a Comment