Find Jobs
Hire Freelancers

Develop a Mac Application

€8-30 EUR

已关闭
已发布大约 8 年前

€8-30 EUR

货到付款
Question 1 Ten threads share an integer array that is initialized by main. Each thread when accessing the shared array has exclusive access. This means that no other thread in the group will be accessing it at that time. Hence, locking is not required. The threads agree to access the threads in sequence where the order of the sequence is determined by main. All the threads are released at the same time and may be executed by the scheduler in any order. However, they may only access the data in the sequence pre-determined by main. In effect this means that each thread must wait for earlier threads in the sequence to complete before accessing the data. There are three kinds of thread: TA adds x to each element in the array; TB decrements each element in the array and TC squares each element in the shared sequence. The number of each kind of thread is determined by main. (Hint: Ask yourself how many Semaphores do I need?) 3 thread Each thread do something different Question 2 Re-write the dining philosophers using Semaphores to manage access to the shared resources. The problem of deadlocks can be solved by making one of the philosophers left handed. Use this approach to avoid deadlocking.
项目 ID: 10104757

关于此项目

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

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
1威客以均价€105 EUR来参与此工作竞标
用户头像
Hello I can answer the questions as well as write the code for you. I really like Operating Systems and had the highest grade back at university on the OS class (not to mention I had completed multiple multithreaded/parallelized applications afterwards).
€105 EUR 在1天之内
4.9 (31条评论)
7.6
7.6

关于客户

IRELAND的国旗
Dublin, Ireland
4.9
6
付款方式已验证
会员自3月 18, 2016起

客户认证

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