Find Jobs
Hire Freelancers

I would like to hire a Freelance Developer -- 2

$10-30 USD

Cancelled
Posted about 7 years ago

$10-30 USD

Paid on delivery
I need you to develop some software for me. I would like this software to be developed for Linux using C or C++. This project will include multithreadening operations, not requires a high level programming and task is quite easy. Description: In a company the human resources (HR) department deals with hiring new employees. In this department, there is one receptionist and three interviewers. When an applicant arrives at the department, the receptionist registers him/her. After this step, the receptionist sends the applicant into the waiting room. Whenever one of the interviewers becomes available, he/she calls the first applicant in line and interviews him/her. While the interviewers interview the applicants, the receptionist continues registering incoming applicants. (Note: Assume that the waiting room has infinite capacity.) You are required to model this HR department as a process with the interviewers and the receptionist as threads of this process. The receptionist needs nr seconds to register each applicant (this time is fixed and is read as a command line argument). Interviewing an applicant takes ni seconds for an interviewer and ni depends on the job position the applicant is applying for. To simulate applicants with different types of position applications, an interviewer thread should read the time it will take to interview the current applicant from an input file. (Hint! To simulate the waiting times during the registration and interview stages, you can use the “sleep” command.) Please note: For this homework, you are required to model the HR department as ONE process with FOUR threads (one receptionist thread and three interviewer threads). Solving the problem with multiple processes and no threads, will NOT get any points. Please preserve the order and meaning of the program arguments. Please test your program with different input files and make sure to achieve expected results. Please check that your program correctly removes all allocated resources (e.g. shared memory locations, semaphores, and any others you have used). Input parameters and input file formats: Input files for testing your program must be in the format given below where each line contains the ni interviewing times for each applicant. Input file must be in “.txt” file format. Assume that there are 4 applicants with following interviewing times. For example, interviewing time for the first applicant is 50 seconds, for the second one 30 seconds, so on. [login to view URL] 50 30 70 60 .. Test: Your program will be tested in the form: ./program [login to view URL] nr Output format: Your program must print the events on the screen in their order of occurrence in the format given below. Assume that nr = 1 seconds in this example. Applicant 1 applied to the receptionist Applicant 2 applied to the receptionist Applicant 3 applied to the receptionist Applicant 4 applied to the receptionist Applicant 1’s registeration is done Interviewer 1 started interview with Applicant 1 Applicant 2’s registeration is done Applicant 3’s registeration is done Interviewer 3 started interview with Applicant 2 Interviewer 2 started interview with Applicant 3 Applicant 4’s registeration is done Interviewer 3 finished interview with Applicant 2 Interviewer 3 started interview with Applicant 4 Interviewer 1 finished interview with Applicant 1 Interviewer 2 finished interview with Applicant 3 Interviewer 3 finished interview with Applicant 4 All applicants have interviewed successfully.
Project ID: 13700945

About the project

5 proposals
Remote project
Active 7 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
5 freelancers are bidding on average $51 USD for this job
User Avatar
!!!!!Hello!!!!! How are you? I've a great interest in your project as a Computer Vision and C, C++, C# programming expert who have been specializing in this field for over 10 years. As you can check from my portfolio and previous project reviews, I've developed Object Recognition & Detection programme such as OCR, ALPR, Pedestrain Detection and Counting with C++ & C# . I feel confident that can fulfill your requirements. Please contact me so that I can discuss with you on the project more in detail. Thanks and Regards, Richard Minh.
$45 USD in 1 day
4.9 (43 reviews)
6.8
6.8
User Avatar
I can develop the code for multithreaded program in c++. Feel free to contact me via chat, so that we can discuss about it. Please check my profile for reviews. I am not a mediator,. I develop code myself. Thanks
$111 USD in 5 days
5.0 (26 reviews)
5.2
5.2
User Avatar
We've dedicated team of experts to deliver quality solution within your time frame. I can answer your queries on CHAT. Looking forward to work on your project.
$50 USD in 1 day
5.0 (1 review)
3.0
3.0
User Avatar
Dear Madam/Sir, Price and time can be discussed later when We discuss the project. I believe communication is key to any successful project, and I'd like to start things off on the right foot but suggesting We schedule a phone or Skype call to discuss your's project further. Please let me know a time that works best for you and I will make sure that I make myself available. Thank you for your time and consideration. With Regards, Irshad
$25 USD in 11 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of TURKEY
Istanbul, Turkey
5.0
4
Payment method verified
Member since Apr 11, 2017

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.