Find Jobs
Hire Freelancers

c# multithread client/server example

$10-30 USD

已完成
已发布大约 9 年前

$10-30 USD

货到付款
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.
项目 ID: 7435214

关于此项目

2提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
hello, i can done it in few hours , thank .................................................................................................
$25 USD 在1天之内
0.0 (0条评论)
0.0
0.0
2威客以平均价$28 USD来参与此工作竞价
用户头像
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 在1天之内
5.0 (76条评论)
5.2
5.2

关于客户

SPAIN的国旗
getxo, Spain
5.0
8
付款方式已验证
会员自1月 29, 2014起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。