Find Jobs
Hire Freelancers

Develop a Mac Application

€8-30 EUR

Lezárt
Kiadva ekkor: körülbelül 8 évvel ezelőtt

€8-30 EUR

Teljesítéskor fizetve
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.
Projektazonosító: 10104757

A projektről

1 ajánlat
Távolról teljesíthető projekt
Aktiválva: 8 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
1 szabadúszó adott átlagosan €105 EUR összegű árajánlatot erre a munkára
Felhasználó avatár
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 napon belül
4,9 (31 értékelés)
7,6
7,6

Az ügyfélről

IRELAND zászlója
Dublin, Ireland
4,9
6
Fizetési mód hitelesítve
Tagság kezdete: márc. 18, 2016

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.