Find Jobs
Hire Freelancers

Simple Thread Program

$10-15 USD

Igangværende
Slået op cirka 20 år siden

$10-15 USD

Betales ved levering
The project is to write a program in **Java** . My program must use at least 5 processes or threads running simultaneously. The processes or threads behave as follows: The parent thread generates a number of child threads and thereafter behaves as a SERVER thread. Each child thread behaves as a CLIENT. The SERVER reads in the ASCII text file which contains 100 lines, and stores each line of text in a data structure indexed by the line number. Then the SERVER accepts and responds to requests from the CLIENTs until 40 requests have been served. Then the SERVER terminates. Each CLIENT thread sends requests to the SERVER at random intervals of real time between 1 and 5 seconds. The form of each request is an integer **n** where **n** is between zero and 101. Then the CLIENT waits for it's request to be served before sending the next request. The SERVER serves a request by sending back to the requesting CLIENT the actual text of the ASCII file on the requested line number together with the number (from 1 to 40) of that request. Once the SERVER has terminated each CLIENT gets a turn at printing its replies to the console window. Each client prints all the replies it received to its requests in order of service onto the console window. The output starts with an appropriate heading, contains an ordered list of replies, and finishes with a count of all replies. The client terminates after the output. There is a pause of ten seconds before the next client gets its turn to print. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Has to run in Windows XP, and source should be in JBuilder or netbeans.
Projekt-ID: 2660561

Om projektet

3 forslag
Projekt på afstand
Aktiv 20 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
Tildel til:
Brug Avatar.
See private message.
$10 USD på 3 dage
4,8 (12 anmeldelser)
2,2
2,2
3 freelancere byder i gennemsnit $10 USD på dette job
Brug Avatar.
See private message.
$12,75 USD på 3 dage
1,8 (3 anmeldelser)
0,6
0,6
Brug Avatar.
See private message.
$8,50 USD på 3 dage
0,0 (1 bedømmelse)
0,0
0,0

Om klienten

Flag for UNITED STATES
Miami, United States
4,9
8
Medlem siden dec. 2, 2001

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.