Private auction

Dokončeno Zveřejněno Apr 20, 2003 K zaplacení v momentě doručení
Dokončeno K zaplacení v momentě doručení

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

Inženýrství Java Linux MySQL PHP Softwarová architektura Testování softwaru UNIX

Identifikační číslo projektu: #2927063

O projektu

9 nabídek Projekt na dálku Aktivní Apr 21, 2003

Uděleno uživateli:

vw763354vw

See private message.

$7 USD za 14 dní
(12 recenzí)
1.8

9 Freelnceři na tento projekt zveřejňují nabídky v průměru $28

lvdt

See private message.

$11.05 USD za 14 dní
(100 Recenzí)
5.1
srazakvw

See private message.

$42.5 USD za 14 dní
(35 Recenzí)
5.0
ovisual

See private message.

$21.25 USD za 14 dní
(32 Recenzí)
4.5
exceptionalcoder

See private message.

$42.5 USD za 14 dní
(8 Recenzí)
4.0
hunghmvw

See private message.

$51 USD za 14 dní
(15 Recenzí)
3.9
lubnavw

See private message.

$17 USD za 14 dní
(10 Recenzí)
3.8
mulgar

See private message.

$15.3 USD za 14 dní
(5 Recenzí)
1.9
vinayakkatnawer

See private message.

$42.5 USD za 14 dní
(1 recenze)
0.0