Find Jobs
Hire Freelancers

C programming - Semaphores

$15-25 AUD / hour

Suoritettu
Julkaistu noin 8 vuotta sitten

$15-25 AUD / hour

1. Create a new module sema with the corresponding file extension (e.g. sema.c with an accompanying sema.h for C, etc.) that implements an algorithm (provided), and add it to a repository. Embed all the data needed to implement your Semaphore in a single struct or class. Don't use any existing POSIX or other Semaphore implementations in your code! 2. Add an initialiser function to your code that sets up a Semaphore and intialises it to a pre-defined (integer) value. 3. Add a destructor function to your code that cleans up properly after the use of a Semaphore (e.g. destroys all mutexes, and condition variables, and releases all memory allocated for a Semaphore). 4. Test the code with a separate program sematest.c that re-implements synchronisation steps (provided) but this time uses semaphores. Use the smallest number of semaphores necessary (and make sure you don't use any other synchronisation constructs outside your semaphore implemetation (with the only exception being pthread_join()))! Your test needs to include a case that clearly shows the difference between using a mutex and a Semaphore! Further detail provided on acceptance :)
Projektin tunnus (ID): 10320431

Tietoa projektista

2 ehdotukset
Etäprojekti
Aktiivinen 8 vuotta sitten

Haluatko ansaita rahaa?

Freelancerin tarjouskilpailun edut

Aseta budjettisi ja aikataulu
Saa maksu työstäsi
Kuvaile ehdotustasi
Rekisteröinti ja töihin tarjoaminen on ilmaista
Myönnetty käyttäjälle:
Käyttäjän avatar
I can solve your problem within 1 day. Quickly and well. I have a lot of experience with C and algorithms. I have recently graduated from the second-best IT university in Europe (University of Warsaw).
$20 AUD 4 päivässä
5,0 (12 arvostelua)
4,1
4,1
2 freelancerit tarjoavat keskimäärin $21 AUD/tunti tätä projektia
Käyttäjän avatar
Hi, Feel free to discuss the project with me. I have been working as a freelancer and have developed several applications and solved several algorithms.
$22 AUD 10 päivässä
5,0 (7 arvostelua)
4,0
4,0

Tietoja asiakkaasta

Maan AUSTRALIA lippu
Australia
4,9
3
Maksutapa vahvistettu
Liittynyt huhtik. 5, 2016

Asiakkaan vahvistus

Muita töitä tältä asiakkaalta

Very basic C program Required
$15-25 AUD / hour
Kiitos! Olemme lähettäneet sinulle sähköpostitse linkin, jolla voit lunastaa ilmaisen krediittisi.
Jotain meni pieleen lähetettäessä sähköpostiasi. Yritä uudelleen.
Rekisteröitynyttä käyttäjää Ilmoitettua työtä yhteensä
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ladataan esikatselua
Lupa myönnetty Geolocation.
Kirjautumisistuntosi on vanhentunut ja sinut on kirjattu ulos. Kirjaudu uudelleen sisään.