Find Jobs
Hire Freelancers

I would like to hire a Freelance Developer -- 2

$10-30 USD

已取消
已发布将近 7 年前

$10-30 USD

货到付款
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.
项目 ID: 13700945

关于此项目

5提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
5威客以平均价$51 USD来参与此工作竞价
用户头像
!!!!!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 在1天之内
4.9 (43条评论)
6.8
6.8
用户头像
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 在5天之内
5.0 (26条评论)
5.2
5.2
用户头像
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 在1天之内
5.0 (1条评论)
3.0
3.0
用户头像
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 在11天之内
0.0 (0条评论)
0.0
0.0

关于客户

TURKEY的国旗
Istanbul, Turkey
5.0
4
付款方式已验证
会员自4月 11, 2017起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。