Find Jobs
Hire Freelancers

c# multithread client/server example

$10-30 USD

Abgeschlossen
Veröffentlicht vor fast 9 Jahren

$10-30 USD

Bezahlt bei Lieferung
Small assignment to develop (using c#) a client and a server. Multiple clients pass a string to a server (they are in the same computer so named pipes can be used). The server, has 'n' threads (configuration parameter, for example 5). Each thread does an initialization task (in this case sleep 20 seconds) and then thread is available to 'listen' clients requests. When the server receives the string from the client, sends the request to a free thread (locking it until it's done). When the server receives the 6th request, it will wait until a thread is free. In this example, the server thread will count the number of the characters of the string submitted by the client and return it to the client (or -1 in case of error). Then the thread will be again available to continue attending other clients requests. The client will print the result obtained from the server. Client -> sends string to Server Server-> initializes 5 threads (Thread initialize Sleep(200000)) When server receives string from client -> sends string to free thread Thread process string (count chars) and returns value to server Server returns value to client (or -1 in case of error) If all threads busy, server holds petition until a thread is free.
Projekt-ID: 7435214

Über das Projekt

2 Vorschläge
Remote Projekt
Aktiv vor 9 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
hello, i can done it in few hours , thank .................................................................................................
$25 USD in 1 Tag
0,0 (0 Bewertungen)
0,0
0,0
2 Freelancer bieten im Durchschnitt $28 USD für diesen Auftrag
Avatar des Nutzers
Hi, I have read the requirements and I would like to do this project if given the opportunity. I am a computer science practitioner and having the "C# and Algorithms Certification Badge" in my profile gives me confidence and assurance that I can deliver you the project as required. Let me know if you are interested so I can start. Thanks.
$30 USD in 1 Tag
5,0 (76 Bewertungen)
5,2
5,2

Über den Kunden

Flagge von SPAIN
getxo, Spain
5,0
8
Zahlungsmethode verifiziert
Mitglied seit Jan. 29, 2014

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.