Operating systems concepts, Operating System

The code should be nicely formatted with plenty of comments. It should be easy to read, properly

The summary section should include three parts:

(1) Record the running time in Table 1

(2) Discuss your result in Table 1 (1-2 pages), and cite 1-2 references to support your discussion

(3) What was learned by doing this project

Your results must be presented clearly and be reproducible.

Table 1
File 1 File 2 File 3

1 Process

2 Processes

4 Processes

II. Project Description

Problem Overview

You must use fork and pipe to complete this project.

This project creates processes to add all numbers in a file. The user will enter a number (1, 2, or 4) of parallel processes to create for processing the numbers. The system will then create this many processes, evenly dividing the file contents between the processes. For example, if the file has 1000 numbers and the user wants 4 processes, then each process would process 250 numbers in the file.

III. System Description

The system is illustrated in the diagram shown below. The processes are as follows:

1. Parent process. This process allows user to input the number of processes to create (1, 2, or 4). It determines what portion of the file each process must work on and informs the process via a pipe. It then waits for each child to report its result. Once each result is received, it combines the results prints the overall result.

2. Child process. Receive which part of the file to process. Process the file and send results back to the parent process.

Posted Date: 3/20/2013 3:09:47 AM | Location : United States







Related Discussions:- Operating systems concepts, Assignment Help, Ask Question on Operating systems concepts, Get Answer, Expert's Help, Operating systems concepts Discussions

Write discussion on Operating systems concepts
Your posts are moderated
Related Questions
Q.  When virtual memory is executed in a computing system there are convinced costs associated with the technique and certain benefits. List the costs as well as the benefits. Is i

Hashed page tables A common approach for handling address spaces larger than 32 bits is to use a hashed page table. Every entry in the hash table having a linked list of elemen

Define dynamic loading. To obtain better memory-space utilization dynamic loading is used. With dynamic loading, a routine is not loaded until it is called. All routines are ke

Contiguous allocation: Every file will be allocated contiguous space in the memory. Allow the block size be 1K If a 50K files desires to be allocated space after t

Write a note on the usage of semaphores. Semaphore is a synchronization tool and it is a variable having integer values. It is accessed only by two standard atomic operations w

Q. Consider a calculating environment where a unique number is associated with each process and each object in the system. Suppose that we permit a process with number n to acce

MEMORY MANAGEMENT USING LINK LISTS The first one is for showing it is process or hole, second is for starting address and third is for length of the process and last is a point

Explain the basic method of paging method. Physical memory is divided into the fixed-sized blocks called frames. Logical memory is as well divided into blocks of the same size

What are the different directory structures? Explain each type. There are five dissimilar directory structures: 1.      Single level directory 2.      Two level directory

Some CPUs provide for more than two modes of operation. What are two possible uses of these multiple modes?