В работе

Pid manager C++

An operating system’s pid manager is responsible for managing process identifiers. When a process is first created, it is assigned a unique pid by the pid manager. The pid is returned to the pid manager when the process completes execution, and the manager may later reassign this pid. Process identifiers must be unique; no two active processes may have the same pid.

Use the following constants to identify the range of possible pid values:

#define MIN_PID 300

#define MAX_PID 5000

You may use any data structure of your choice to represent the availability of process identifiers. One strategy is to adopt what Linux has done and use a bitmap in which a value of 0 at position i indicates that a process id of value i is available and a value of 1 indicates that the process id is currently in use.

Implement the following API for obtaining and releasing a pid:

int allocate_map(void) – Creates and initializes a data structure for representing pids; returns -1 if unsuccessful and 1 if successful

int allocate_pid(void) – Allocates and returns a pid; returns -1 if if unable to allocate a pid (all pids are in use)

void release_pid(int_pid) – Releases a pid.


Provide a documentation page that describes each module, its parameters, and its function.

Comment through the code.

Provide page with tested output.

Квалификация: Программирование на С, Программирование на C#, Программирование на C++, Linux, Архитектура ПО

Показать больше check position google ajax api, desktop icon position save restore api, c project enhancements and baumer api integration, pid controller algorithm source code, minipid c++, frc pid c++, arduino pid, mini pid c++, c++ pid controller library, programming a pid, c# project enhancements and baumer api integration, find a manager for an artist, how to find a manager for an actor, Community Manager - C.A.B.A , Write a mobile application to generate a Scienti c calculator using J2ME/ Python/ Scala/ C++/ An- droid, Multithreaded C program using the Pthread API, Multithreaded C program using the Pthread API+, role of finance manager in an organization, custom memory manager c++, memory manager c++ source code

О работодателе:
( 4 отзыв(-а, -ов) ) Brooklyn, United States

ID проекта: #19618693

1 фрилансер в среднем готов выполнить эту работу за $250


Hi I am software engineer and have done many c++ and c projects. You can share more details of your project so that we can negotiate the price if needed. Thank you

$250 USD за 7 дней(-я)
(65 отзывов(-а))