
多线程
文章平均质量分 84
cuijinquan
这个作者很懒,什么都没留下…
展开
-
pthread_create用法上的小问题
天解决了困扰我好久的一个问题:短信网关内存不断攀升(好像看似内存泄露)。兴奋之余,积极响应ds和小飞鱼的号召,把此问题分享出来。虽然可供参考的部分并不多,但是也有一定的反面教材意义:-)问题描述:原有的短信网关,每产生一个socket连接,就会create一个或多个thread去处理这个socket上的数据收发(数据收发是在 CTCPConnection类中完成,这个类自动创建线程)。转载 2014-01-01 23:58:45 · 585 阅读 · 0 评论 -
IOCP服务器/客户端实现
IOCP服务器/客户端实现 (转)——A simple IOCP Server/Client Class By spinoza——译: Ocean Email:原文选自CodeProject源代码: http://www.codeproject.com/KB/IP/iocp_server_client/IOCP-Demo.ziphttp://w转载 2014-01-03 22:57:51 · 1204 阅读 · 0 评论 -
IOCPNet - Ultimate IOCP
Download demo project - 32.6 KbDownload source - 27.5 KbDownload demo project (using Windows default thread pool) - 32.3 KbDownload source (using Windows default thread pool) - 27.2 KbIntrod转载 2014-01-02 13:36:03 · 1483 阅读 · 0 评论 -
Single Server With Multiple Clients : a Simple C++ Implementation
Single Server With Multiple Clients : a Simple C++ ImplementationBy liyang yu, 22 Jul 2004 4.79 (82 votes) Rate:转载 2014-01-02 00:24:22 · 1266 阅读 · 0 评论 -
Simple client-server network using C++ and Windows Winsock
Download simple_network.zipIntroductionI recently finished a video game design and implementation course at UC San Diego and was in charge of the networking side of the video game along with a转载 2014-01-02 00:20:50 · 1478 阅读 · 0 评论 -
IOCP服务器/客户端实现 (转)
——A simple IOCP Server/Client Class By spinoza——译: Ocean Email:原文选自CodeProject源代码: http://www.codeproject.com/KB/IP/iocp_server_client/IOCP-Demo.ziphttp://www.codeproject.com/KB/IP/转载 2014-01-02 00:08:59 · 2456 阅读 · 0 评论 -
Full Multi-thread Client/Server Socket Class with ThreadPool
Download SocketHandle - 51.41 KBDownload SocketServer - 260.48 KBDownload SocketPort_Linux - 13.89 KBTo run the application as client, type SocketServer.exe /client from the command prompt.转载 2014-01-02 00:22:29 · 1304 阅读 · 0 评论 -
A simple IOCP Server/Client Class
A simple IOCP Server/Client ClassBy spinoza, 11 Dec 2008 4.91 (154 votes) Rate:vote 1vote 2vote 3vot转载 2014-01-02 00:10:28 · 1168 阅读 · 0 评论 -
pthread_create用法
今天开始学习linux下用C开发多线程程序,Linux系统下的多线程遵循POSIX线程接口,称为pthread。#include int pthread_create(pthread_t *restrict tidp, const pthread_attr_t *restrict attr, v转载 2014-01-01 23:52:11 · 616 阅读 · 0 评论 -
Multi-threaded Client/Server Socket Class
Download ServerSocket demo project - 241.6 KBDownload SocketHandle class - 7.46 KBScreenshotsNote: The demo can be started in Client or Server mode, executed with "/C" (or "/CLIENT") or "/S"转载 2014-01-02 00:15:15 · 1509 阅读 · 0 评论 -
Build your own cryptographically safe server/client protocol
Build your own cryptographically safe server/client protocolBy spinoza, 21 Jun 2006 4.95 (111 votes) Rate:转载 2014-01-02 00:11:32 · 1576 阅读 · 1 评论 -
内存映射文件技术
内存映射文件技术1. 用途和基本操作用于不同进程之间的内存共享操作, 可以将一个物理文件映射到内存当中然后直接利用分配到的或者打开的命名共享内存的地址空间实现资源共享访问2. 相关流程1) 新建命名共享内存首先利用CreateFile或者CreateFileForMapping获得一个用于映射的物理文件句柄, 然后利用该文件句柄结合CreateFileMapping得到转载 2014-01-15 00:26:01 · 487 阅读 · 0 评论