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
A practical task specified in the Study Guide, Computer architecture, was to record your computer's specifications. Submit the data you recorded, which will contain the following d

Q. Consider a distributed system with two sites A and B. Consider whether site A can distinguish among the following: a. B goes down. b. The link between A and B goes down.

What is an effector process? The effector process is a method that verifies itself.The effector process exists in particular criteria.

What is a reference string? An algorithm is evaluated by running it on a particular string of memory references and computing the number of page faults. The string of memory re

Question: (a) What are the main challenges for Mobile Computing? (b) What is the ISM band and what is particular about this frequency band? Name two wireless technologies

The primary financial objective of corporation is usually taken to be the maximization of shareholder wealth. Discuss:- i. Ways in which the shareholder of a company can encour

File allocation using I nodes. This method is used to decrease the size of the table in the above method. Every file will have an I-node list. Allow a file have 15 pointers a

What are the three main activities of an operating system in regard to secondary-storage management? a) Free-space management. b) Storage allocation. c) Disk scheduling.

Compare user threads and kernel threads. User threads:- User threads are supported above the kernel and are executed by a thread library at the user level. Thread creation

Explain the Advantage of Assembly Language The advantages of assembly language program is: a)    Reduced errors  b)    Faster translation times  c)    Changes could be ma