Find Jobs
Hire Freelancers

Private auction

$30-5000 USD

Finalizat
Data postării: aproape 21 ani în urmă

$30-5000 USD

Plata la predare
Implement the following problem in Java [use threads, synchronization mechanisms, and condition variables that are supported by the Java language]: Producer/Consumer problem: It is the most common problem faced in concurrent processing. The general statement of the problem is as follows. There are one or more producers generating some type of data (records, characters) and placing these in a buffer. There is a single consumer that is taking items out of the buffer, one at a time. The system is to be constrainted to prevent the overlap of buffer operations. That is, only one agent (producer or consumer) may access the buffer at any one time. The buffer is finite and consists of a linear array of elements. Use separate threads to model the producers, and the consumer. Use synchronized constructs in Java to implement mutual exclusion requirements. Use condition variables to enforce synchronization constraints, if any, that may arise in the application. Your program should accept the following parameters as input: a. Number of producers b. Size of the buffer array c. probability that a producer will produce an item [used to control rate at which producers are generating new items] d. probability that the consumer will consume an item [used to control rate at which consumer is consuming items in buffer] Your program should output the following timeline: Time Producer# Consumer Special Comments item# item # --- -------- -------- ----------- 1:10 pm Producer 3,item 1 -- -- 1:11 pm -- item 1 ---- 1:12pm -- --Consumer blocked buffer empty -- -- -- 2:20pm producer 2 -- producer blocked buffer full Deliverables: Source code, program output (*note some of the output shown is not in the correct position so if you need to see it please email me ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased. ## Platform UNIX please send files with instructions
ID-ul proiectului: 2927063

Despre proiect

9 propuneri
Proiect la distanță
Activ: 21 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
Acordat utilizatorului:
Avatarul utilizatorului
See private message.
$7 USD în 14 zile
4,4 (12 recenzii)
1,8
1,8
9 freelanceri plasează o ofertă medie de $28 USD pentru proiect
Avatarul utilizatorului
See private message.
$11,05 USD în 14 zile
4,9 (100 recenzii)
5,1
5,1
Avatarul utilizatorului
See private message.
$42,50 USD în 14 zile
5,0 (35 recenzii)
5,0
5,0
Avatarul utilizatorului
See private message.
$21,25 USD în 14 zile
4,9 (32 recenzii)
4,5
4,5
Avatarul utilizatorului
See private message.
$42,50 USD în 14 zile
5,0 (8 recenzii)
4,0
4,0
Avatarul utilizatorului
See private message.
$51 USD în 14 zile
4,8 (15 recenzii)
3,9
3,9
Avatarul utilizatorului
See private message.
$17 USD în 14 zile
4,9 (10 recenzii)
3,8
3,8
Avatarul utilizatorului
See private message.
$15,30 USD în 14 zile
4,9 (5 recenzii)
1,9
1,9
Avatarul utilizatorului
See private message.
$42,50 USD în 14 zile
5,0 (1 recenzie)
0,0
0,0

Despre client

Steagul UNITED STATES
United States
5,0
1
Membru din apr. 29, 2002

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.