Find Jobs
Hire Freelancers

Bounded Buffer

$13-18 USD

已完成
已发布大约 20 年前

$13-18 USD

货到付款
This problem is to design and implement a process with a producer and consumer thread using N different buffers (use a fixed size for N of 25). Base your solution on the solution to the producer-consumer problem. You will need a mutual exclusion semaphore to prevent the producer the producer and consumer from manipulating the list of buffers at the same time, a semaphore so that the producer can signal the consumer to start processing when it creates full buffer, and another semaphore for the consumer to signal the producer when it creates an empty buffer. You will need the POSIX thread, or pthread package. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). 4) **COMMENTS, COMMENTS, COMMENTS**! 5) The attached file contains pseudocode given in the textbook. Below are some other instructions: -You will need to include the pthread.h header file to define various thread types such as pthread_t and pthread_attr_t and the function prototypes exported by the pthread package. - Here are the function prototypes for creating a mutex (pthread_mutex_init()), for destroying a mutex (pthread_mutex_destroy()). -"Start with the pseudocode solution. You may have to reformulate parts of the pseudocode, and you will certainly have to flesh out the entire implementation." ## Platform OS: UNIX Language: C++
项目 ID: 3165650

关于此项目

1条提案
远程项目
活跃20 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$15 USD 在3天之内
4.9 (21条评论)
3.7
3.7

关于客户

UNITED STATES的国旗
United States
4.0
1
会员自4月 8, 2004起

客户认证

这个客户的其他工作

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