Đã hoàn thành

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).

Kĩ năng: Lập trình C, Kĩ thuật, Java, MySQL, PHP, Kiến trúc phần mềm, Kiểm tra phần mềm

Xem nhiều hơn: use of algorithms in programming, thread programming, text algorithms, test algorithms, server languages, programming with algorithms, number algorithms, line algorithms, java server programming, example of 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

Về Bên Thuê:
( 8 nhận xét ) United States

ID dự án: #2956937

Được trao cho:

codepvw

See private message.

$7 USD trong 5 ngày
(8 Đánh Giá)
2.6

15 freelancer đang chào giá trung bình $40 cho công việc này

francoisbea

See private message.

$29.75 USD trong 5 ngày
(14 Nhận xét)
5.6
dalexandervw

See private message.

$85 USD trong 5 ngày
(16 Nhận xét)
4.6
thecoder256

See private message.

$42.5 USD trong 5 ngày
(32 Nhận xét)
4.6
galaxynanos

See private message.

$8.5 USD trong 5 ngày
(22 Nhận xét)
4.4
seirus

See private message.

$5.95 USD trong 5 ngày
(36 Nhận xét)
4.0
teamvw

See private message.

$25.5 USD trong 5 ngày
(36 Nhận xét)
3.8
kingofblash

See private message.

$85 USD trong 5 ngày
(11 Nhận xét)
3.9
rediffusion

See private message.

$42.5 USD trong 5 ngày
(13 Nhận xét)
3.4
lonapz

See private message.

$38.25 USD trong 5 ngày
(10 Nhận xét)
2.8
vasilevalaiba

See private message.

$42.5 USD trong 5 ngày
(9 Nhận xét)
2.5
tekguyvw

See private message.

$34 USD trong 5 ngày
(10 Nhận xét)
2.5
hsswe1

See private message.

$34 USD trong 5 ngày
(8 Nhận xét)
2.5
codmen

See private message.

$41.65 USD trong 5 ngày
(0 Nhận xét)
0.0
vw909207vw

See private message.

$85 USD trong 5 ngày
(0 Nhận xét)
0.0