Find Jobs
Hire Freelancers

Private auction

$30-5000 USD

Slutfört
Publicerad ungefär 21 år sedan

$30-5000 USD

Betalning vid leverans
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
Project ID: 2927063

Om projektet

9 anbud
Distansprojekt
Senaste aktivitet 21 år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
See private message.
$7 USD Om 14 dagar
4,4 (12 omdömen)
1,8
1,8
9 frilansar lägger i genomsnitt anbud på $28 USD för detta uppdrag
Använd avatar
See private message.
$11,05 USD Om 14 dagar
4,9 (100 omdömen)
5,1
5,1
Använd avatar
See private message.
$42,50 USD Om 14 dagar
5,0 (35 omdömen)
5,0
5,0
Använd avatar
See private message.
$21,25 USD Om 14 dagar
4,9 (32 omdömen)
4,5
4,5
Använd avatar
See private message.
$42,50 USD Om 14 dagar
5,0 (8 omdömen)
4,0
4,0
Använd avatar
See private message.
$51 USD Om 14 dagar
4,8 (15 omdömen)
3,9
3,9
Använd avatar
See private message.
$17 USD Om 14 dagar
4,9 (10 omdömen)
3,8
3,8
Använd avatar
See private message.
$15,30 USD Om 14 dagar
4,9 (5 omdömen)
1,9
1,9
Använd avatar
See private message.
$42,50 USD Om 14 dagar
5,0 (1 omdöme)
0,0
0,0

Om kunden

Flagga för UNITED STATES
United States
5,0
1
Medlem sedan apr. 29, 2002

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.