Find Jobs
Hire Freelancers

Private auction

$30-5000 USD

Concluído
Publicado há aproximadamente 21 anos

$30-5000 USD

Pago na entrega
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 do Projeto: 2927063

Sobre o projeto

9 propostas
Projeto remoto
Ativo há 21 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
See private message.
$7 USD em 14 dias
4,4 (12 avaliações)
1,8
1,8
9 freelancers estão ofertando em média $28 USD for esse trabalho
Avatar do Usuário
See private message.
$11,05 USD em 14 dias
4,9 (100 avaliações)
5,1
5,1
Avatar do Usuário
See private message.
$42,50 USD em 14 dias
5,0 (35 avaliações)
5,0
5,0
Avatar do Usuário
See private message.
$21,25 USD em 14 dias
4,9 (32 avaliações)
4,5
4,5
Avatar do Usuário
See private message.
$42,50 USD em 14 dias
5,0 (8 avaliações)
4,0
4,0
Avatar do Usuário
See private message.
$51 USD em 14 dias
4,8 (15 avaliações)
3,9
3,9
Avatar do Usuário
See private message.
$17 USD em 14 dias
4,9 (10 avaliações)
3,8
3,8
Avatar do Usuário
See private message.
$15,30 USD em 14 dias
4,9 (5 avaliações)
1,9
1,9
Avatar do Usuário
See private message.
$42,50 USD em 14 dias
5,0 (1 avaliação)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
United States
5,0
1
Membro desde abr. 29, 2002

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.