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.

**Just simplify the attached code, take away the threads and mutex locks. And test the program then send me the source file and the output screen shot.

Skills: C Programming, C# Programming, C++ Programming, Linux, Software Architecture

See more: successful people willing unsuccessful people unwilling, vb6 find pid winword exe task manager, unpack situations successful unsuccessful communication experienced workplace, mini pid c++, frc pid c++, c++ pid controller library, minipid c++, successful unsuccessful essay, successful unsuccessful communication, essay successful unsuccessful communication, successful unsuccessful communication workplace, adaptive pid control algorithm implementation (selftune c coding), adaptive pid control algorithm implementation selftune c coding, c programmers wanted to remove the licence on an application, c++ programmers wanted to remove the licence on an application, develop and sdk in c from an, implement a parser that processes sequences of correctly paired ifs and elses in a c program, i am an architect specializes in architectural visualization 3d i work as freelancer & i currently publish tutorials on my site, c# read and write text file, find a manager for an artist

About the Employer:
( 4 reviews ) Brooklyn, United States

Project ID: #19747528

10 freelancers are bidding on average $34 for this job


Hi I'm an expert in OS concepts programming. I'm sure that I can easily do this project. We can have a about it. Thanks..

$25 USD in 1 day
(399 Reviews)

Hi, I have experience in .net development using C#, winForms, MVC and SQL server technologies. I have been working in this field since 2013. I have the spirit and experience for problem solving, sophisticated design More

$30 USD in 1 day
(32 Reviews)

keen to do it, please discuss. Negotiable price and duration...... ...... ................................... .............................

$40 USD in 2 days
(39 Reviews)

Hi, I can complete this project for 1 day, let's discuss this project details, Thank you,

$90 USD in 1 day
(30 Reviews)

Hello I am an experienced C/C++ developer. I have experience in working witb mutex locks, pthreads, semaphores etc. I can help you with your task. You can see my profile at [login to view URL] [login to view URL] More

$30 USD in 1 day
(2 Reviews)

I have plenty of experience with C/C++ programming and I can easily help you with this project. Please let me know if you have any questions.

$30 USD in 1 day
(1 Review)

i have 6+ years of experience in c/c++. i have read your requirement and working towards complemetation.

$25 USD in 2 days
(0 Reviews)

I will be glad to help you with your project of solving PID manager. Please let me know your requirement in detail. So that I come up with the best solution suitable for you.

$31 USD in 4 days
(0 Reviews)

I've read your problem and your requirements and gone through your code as well. I found it easy and have edited the code and made it as efficient as possible. Since i am new over Freelancer hence i need this task badl More

$15 USD in 1 day
(0 Reviews)

Yeah this looks pretty simple, should just take me a couple hours. I have to type 100 characters so... I've worked on lots of cool stuff like 3D medical image processing in C++, embedded development in C, etc.

$20 USD in 3 days
(0 Reviews)