Question

In: Computer Science

. 1. In the Operating System zoo describe the 4 different types of Operating Systems and...

. 1. In the Operating System zoo describe the 4 different types of Operating Systems and describe them.

2. What is a process, when are they created and when are they terminated.

Solutions

Expert Solution

Question 1:

Operating System:

The operating system is the system software that handles the computer's basic functionality like scheduling, input/output operation resource allocation, file system manipulation, etc.

It is an interface between the computer hardware and the user.

Type of operating system:

  1. Real-time operating system
  2. Distributed operating system
  3. Batch Processing System
  4. Time-Sharing Processing System

Real-time operating system:

The real-time operating is used for the real-time application in which time is very important to complete a given task and no buffer delay allowed. If the given task is not completed within the given time period then the system will fail.

Type of real-time operating system:

  1. Hard real-time operating system
  2. Soft real-time operating system

In a hard real-time system the given tasks must be completed in the given time bound otherwise the system will fail.

In a soft real-time system if the given tasks may not be completed in the given time bound the system will not fail and some more time may be assigned with low probability.

Distributed operating system:

A distributed operating system is a collection of distributed application which are running on the multiple computers which are connected with each other through the communication channel.  

The distributed system is a loosely coupled system in which multiple CPU is physically separate computational nodes.

Example:

  • LOCUS
  • MICROS

A  distributed operating system contributes by communicating with high-speed communication lines. The complete system looks like an ordinary centralized operating system. Each of the system or node has its own memory.

Actually, the user doesn't know about the machine on which the programs are running and about the storage of the files.

The application work towards achieving a common goal. The operating system takes care of the network if needed. The process can move among different computers but the distributed nature of the process is hidden from the processes.

Batch Processing System:

In the batch processing system, multiple tasks are completed in serial order and run one after the other. In this type of processing system, there is no switching between the task or job before the completion of executing tasks or jobs.

The multiple jobs in a batch are completed without user interaction.

Time-Sharing Processing System:

In the time-sharing processing system, the operating system will switch between different jobs and this system is more responsive as compared to the batch processing system. The context switching is very fast.

Time-sharing means the processor time that is shared among multiple users simultaneously. The resources are allocated to the user in time slots.

Question 2:

Process:

A process is not only a program under execution but it is the active state of the program when it is executing and it has its own Process Control Block.

A process requires other resources like memory, CPU, hard disk, and Input/Output, etc.

A process has five states as given below:

  1. New
  2. Ready
  3. Running or Executing
  4. Waiting or blocked
  5. Terminated

When the user request a new process, or at the time of system initialization or a process wants to run a system call, etc. then the new process will be created in the system.

A new process is created by using the fork() system call.

The fork() system call is used to create the child process and the child process is a copy of the parent process that will be run concurrently with the parent process. It returns an integer value and this value may be of three types:

  1. Zero
  2. Positive
  3. Negative

The zero value is returned to the newly created process.

The positive value is the process id and this value is returned to the parent process.

If the child process is not created successfully then the negative value is returned.

When the process completed its task or there is no process to get the status of the running process then the process will be terminated by calling the exit() system call.

We can use wait() and exit() system call to establish a communication between the parent process and the child process.


Related Solutions

1. In the Operating System zoo describe the 4 different types of Operating Systems and describe...
1. In the Operating System zoo describe the 4 different types of Operating Systems and describe them. 2. Describe what happens when booting a computer ? 3. What are System calls. Provide 6 file and directory system calls
4. a. we learned about 4 different types of membrane cell receptors. describe these different types...
4. a. we learned about 4 different types of membrane cell receptors. describe these different types and give a spesific example for each of them. b. a certain patient as a mutation that nutrelizes the enzyme that is incharge of Myristoylation of proteins. which of the types of receptors that you descibed in question a will be affected by this mutation? what will be the effect? what is the role of Myristoylation? give as much details as possible.
1.) Why do we have to install different Device Drivers for different Operating Systems for a...
1.) Why do we have to install different Device Drivers for different Operating Systems for a particular I/O device? 2.) A process can share all or part of its PCB data with other processes. List and explain two methods can be used to accomplish this task. 3.) List the memory units inside and outside of the CPU, along with short descriptions of their purposes.
2) Name and describe the different types or forms of a CRM system and specify their...
2) Name and describe the different types or forms of a CRM system and specify their goals and functions. In a given firm, should all these types be aligned and synchronized? Why? WRITE IN DETAILS PLEASE
What is an operating system? What are its functions? What are the types of operating system?
What is an operating system? What are its functions? What are the types of operating system?
Briefly describe the types of economic systems. What is the United States’ economic system and what...
Briefly describe the types of economic systems. What is the United States’ economic system and what are the characteristics of this economy? What economic role or functions does the U.S. government conduct regularly? Why is the U.S. government’s economic role important or unimportant for the U.S. economy? Discuss whether you favor a larger or smaller government role in the economy.
Explain different types of car suspension systems.
Explain different types of car suspension systems.
Operating Systems Question 1.What is the maximum number of processes in the system at any time...
Operating Systems Question 1.What is the maximum number of processes in the system at any time using the following code segment? extern char mypath[]; for ( int i = 0; i < 10; i++ ) { pid_t pid, pid_out; unsigned char status; if ( pid = fork() ) pid_out = wait ( &status ); else execl ( mypath, "child", "parameter", NULL ); } Assume that child performs some simple computation and returns the result, that is captured in status.
Describe the three types of exchange rate systems.
Describe the three types of exchange rate systems.
List 2 different types of coding systems and describe any benefits or issues when using them...
List 2 different types of coding systems and describe any benefits or issues when using them for a chart of accounts.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT