Закрыт

Create a shared memory segment and child processes in C

Этот проект получил 4 заявок от фрилансеров со средней стоимостью заявки в размере $64 USD.

Получить бесплатно ценовые предложения для подобного проекта
Работодатель работает
Бюджет проекта
$10 - $30 USD
Всего заявок
4
Описание проекта

Creation of unique shared memory segments for the Mean/Median/Mode instance to store

results.

2. Creation of a pipe for each Mean/Median/Mode instance that provides it with th

e ID of the

shared memory segment created in step (1). The file descriptor (FD) of the pipe is passed as an

additional argument to the Mean/Median/Mode.

3. Mean/Median/Mode processes run concurrently rather than sequentially. This means that the

Initiator

will launch all the child processes and then start waiting for results.

As in the previous assignment, each instance of the Mean/Median/Mode will receive the text file

as an arguments. To facilitate this, the Initiator will take one argument and selectivel

y pass it on

to the Mean/Median/Mode executables.

For instance, executing the command

%

Initiator [url removed, login to view]

would create 3 child processes that would compute mean. Median and mode, respectively, in

parallel (% is the system prompt).

The Mean/Median/Mode

have changed as well:

1. An additional command line argument gives the FD of the pipe to read from.

2. Using the pipe FD, the Mean/Median/Mode determines the segment ID of the shared memory

to store its result.

3. The resulting value (type

double

) is store

d in the shared memory segment.

Хотите заработать немного денег?

  • Укажите свой бюджет и срок
  • Опишите свое предложение
  • Получите оплату за свою работу

Нанять фрилансеров, которые также подали заявку в этот проект

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online