尝试在c。中实现并发TCP服务器和客户端

问题描述:

我已经在c中使用线程和叉来实现TCp并发服务器和客户端。
但是我没有任何方法来检查是否有任何其他标准的方式来实现
这个。

I have implemented TCp concurrent server and client in c using threads as well as forks. But I don't have any way to check whether there is any other standard way of implementing this.

我喝了标准编码东西,但没有找到任何有用的。
有人可以共享一些好的链接或代码,这样我可以有一个标准的想法
实现并发服务器。

I have goggled for standard coding stuff but didnt find anything useful. Can someone pl z share some good links or code so that I can have a standard idea of implementing Concurrent servers.

感谢帮助

没有标准想法。您的方法将取决于需求,性能,可扩展性和允许开发的时间量。

There's no "standard idea". Your approach is going to depend on requirements, performance, scalability, and amount of time allowed for development.


  • 每个客户端一个线程

    • 可能使用线程池


    • pre - 吃饭的孩子,例如Apache网络服务器

    所有这些都有自己的用途。

    Etc. All of these have their uses.