Em Andamento

Semaphores

We are going to simulate the writing of logs. The problem can be specified as follows.

There is a process who reads from a single text file, picks up the next line of text, and puts it in a single buffer. Let there be five buffers and our producer process keeps on trying to fill those five buffers. Access to buffers is controlled by individual semaphores corresponding to each buffer. The process can write into a buffer only if the buffer is empty.

There are a number of other processes (consumers) who keep on looking for a buffer to become full. One of these processes should be able to pick up the text in the buffer and write it into the log file. The process must make sure that the file is not opened by another process for writing. You should use the system call fcntl(2) to ensure file locking.

## Deliverables

Look in the zip file.

___________________________________________

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) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).

## Platform

Unix.

Using C or C++ to write the program.

Habilidades: Programação C, Engenharia, Linux, MySQL, PHP, Arquitetura de software, Teste de Software, UNIX

Ver mais: look for producer, buffer source code, producer problem unix, locking access, call log system, semaphores, unix system programming, php locking, form fill text file, looking producer, empty access, producer unix, writing text file php, php write text file form, call logs, 2003 log, process log file, process unix log file, log file unix process, code producer process unix, unix process log, unix log processes, log file unix, program reads text, process log unix

Acerca do Empregador:
( 0 comentários ) United States

ID do Projeto: #2981508

Premiar a:

drizztgr

See private message.

$17 USD em 4 dias
(31 Avaliações)
3.9

5 freelancers estão ofertando em média $18 para este trabalho

esegura

See private message.

$19.55 USD in 4 dias
(22 Comentários)
4.8
teamvw

See private message.

$21.25 USD in 4 dias
(36 Comentários)
3.8
zokker

See private message.

$12.75 USD in 4 dias
(1 Comentário)
0.0
itprojectvw

See private message.

$17 USD in 4 dias
(1 Comentário)
0.0