Find Jobs
Hire Freelancers

python project

$10-30 USD

Completed
Posted about 5 years ago

$10-30 USD

Paid on delivery
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 Write a multithreaded program that tests the above code. Create several threads – for example, 100 – and each thread will request a pid, sleep for a random period of time, and then release the pid. (Sleeping for a random period approximates the typical pid usage in which a pid is assigned to a new process, the process executes and terminates, and the pid is released on the process’ termination). Identify any assumptions that you have made about the problem statement. (You are advised to review these with me). 2. Provide a design document that describes each module, its parameters, and its function. 3. Provide a file containing output that demonstrates that the code meets the requirements of the assignment. Create client functions that exercise these API functions in a way that demonstrates that each operates per the requirements. 4. Provide a file containing the code that generated the output
Project ID: 18915931

About the project

1 proposal
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi, I am very happy to bid your project. I read your requirements carefully,so i see what you mean. I have been experiments with Linux, Python, Software Architecture,django I'd like to work with you. i'll complete this project for you to the best my ability and without condition I am looking forward to meeting you
$25 USD in 1 day
4.7 (13 reviews)
4.1
4.1

About the client

Flag of UNITED STATES
Brooklyn, United States
5.0
1
Payment method verified
Member since Nov 28, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.