Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NEED ANSWER ASAP Given a list of integers find the Minimum, Maximum, and the Sum of the numbers. The list will be in a text

image text in transcribedNEED ANSWER ASAP

Given a list of integers find the Minimum, Maximum, and the Sum of the numbers. The list will be in a text file you generate. You may use any form of interprocess Communication (IPC) to partition the file/array into chunks and distribute work to more than one processes (if there are multiple ones) (e.g., pipes, shared memory, or additional (perhaps more sophisticated) inherent process system calls). Input Format: Input will be in a text file. Each integer will be separated by a newline character ( ). Exp 100 20 35 Output Format: You should print out the results in a text file. Every process that is created should print out their own process id and their parent's process id. Then once you have computed the final max, min, and sum, you will print those out. Please follow this format: Hi I'm process 2 and my parent is 1. Hi I'm process 3 and my parent is 2. Hi I'm process 4 and my parent is 2. Max = 50 Min = Sum = 37 Part A: Write a program to answer this problem using only one process. Given a list of integers find the Minimum, Maximum, and the Sum of the numbers. The list will be in a text file you generate. You may use any form of interprocess Communication (IPC) to partition the file/array into chunks and distribute work to more than one processes (if there are multiple ones) (e.g., pipes, shared memory, or additional (perhaps more sophisticated) inherent process system calls). Input Format: Input will be in a text file. Each integer will be separated by a newline character ( ). Exp 100 20 35 Output Format: You should print out the results in a text file. Every process that is created should print out their own process id and their parent's process id. Then once you have computed the final max, min, and sum, you will print those out. Please follow this format: Hi I'm process 2 and my parent is 1. Hi I'm process 3 and my parent is 2. Hi I'm process 4 and my parent is 2. Max = 50 Min = Sum = 37 Part A: Write a program to answer this problem using only one process

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions