Em Andamento

simulate a server with multiple threads

Using the data set below as input simulate a server with multiple threads. The data set consists of two integers per line: the first being the arrival time, in milliseconds, of the incoming request, the second being the processing time, in milliseconds, required for that request.

Your project should output the number of threads used, the total runtime for that number of threads and the average requests per second for that number of threads. You should try from 1 thread to *n* threads where after *n* threads the runtime and/or the average requests per second does not improve.

For example: if the first lines in the data set are:

0 11

7 6

12 8

For a server with a single thread the total runtime is 25ms since all requests must be started after the previous one finishes. The requests per second is 3 / ( 25 x 10^-3) = 120 requests/second.

For a server with two theads the total processing time is 20ms since the second request can be serviced by the second thread without waiting for the first request to finish in the first thread. The requests per second is 3 / ( 20 x 10 ^ -3) = 150 requests per second.

You may use any of the languages C, C++, or Java to implement your simulation.

[Data set][1]. Capture this text file and remove the HTML tags for the data.

## Deliverables

I want this program include the following stuff :

Listing of program files with appropriate comments,

Description of the algorithms used,

Expected input format with source,

Expected output format with source,

A capture of the interaction with your program (test cases to demonstrate it works as specified).

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

Ver mais: use algorithms programming, thread programming, text algorithms, test algorithms, server languages, number algorithms, line algorithms, java server programming, example algorithms, algorithms test, threads, simulate, java project using threads, remove comments php file, remove comments java program, multiple file html, java test cases, java data capture project, server listing, thread example, html multiple, programming algorithms, remove comments java source, text input capture, improve server

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

ID do Projeto: #2956937

Premiar a:

codepvw

See private message.

$7 USD em 5 dias
(8 Avaliações)
2.6

15 freelancers estão ofertando em média $40 para este trabalho

francoisbea

See private message.

$29.75 USD in 5 dias
(14 Comentários)
5.6
dalexandervw

See private message.

$85 USD in 5 dias
(16 Comentários)
4.6
thecoder256

See private message.

$42.5 USD in 5 dias
(32 Comentários)
4.6
galaxynanos

See private message.

$8.5 USD in 5 dias
(22 Comentários)
4.4
seirus

See private message.

$5.95 USD in 5 dias
(36 Comentários)
4.0
teamvw

See private message.

$25.5 USD in 5 dias
(36 Comentários)
3.8
kingofblash

See private message.

$85 USD in 5 dias
(11 Comentários)
3.9
rediffusion

See private message.

$42.5 USD in 5 dias
(13 Comentários)
3.4
lonapz

See private message.

$38.25 USD in 5 dias
(10 Comentários)
2.8
vasilevalaiba

See private message.

$42.5 USD in 5 dias
(9 Comentários)
2.5
tekguyvw

See private message.

$34 USD in 5 dias
(10 Comentários)
2.5
hsswe1

See private message.

$34 USD in 5 dias
(8 Comentários)
2.5
codmen

See private message.

$41.65 USD in 5 dias
(0 Comentários)
0.0
vw909207vw

See private message.

$85 USD in 5 dias
(0 Comentários)
0.0