没有合适的资源?快使用搜索试试~ 我知道了~
console模式后台开发1
需积分: 0 0 下载量 107 浏览量
2022-08-03
17:21:06
上传
评论
收藏 71KB PDF 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/86296597/0001-7c4370495de73fbdbcc4a23d9b1dc632_thumbnail.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
1页
console 模式后台开发新版本的 ZServer4D 直接干掉在 Server 中做进程同步检查的机制(2018-9 月更新的版本)假如我们使用双通道服务器
资源详情
资源评论
资源推荐
![](https://csdnimg.cn/release/download_crawler_static/86296597/bg1.jpg)
console 模式后台开发
新版本的 ZServer4D 直接干掉在 Server 中做进程同步检查的机制(2018-9 月更新的版本)
假如我们使用双通道服务器,Progress 时,Recv+Send 会有两个 Progress,简单来说,会做
两次进程同步检查,浪费资源不说,也很容易埋下炸弹。
因为从内部干掉了进程同步检查,我们编写 Console 程序必须要在自己的主循环做这一功能。
Program MyServer;
Var
MyServer:TMyServer;
Begin
….
….
While true do
Begin
//服务器主循环
MyServer.Progress;
//在 Console 模式的主循环中必须有下面这句。Application 模式不用
CoreClasses. CheckThreadSynchronize;
End;
End.
注意:此改动只适合服务器。在使用了线程客户端 Progress 中,进程同步检查都是存在的,
因为客户端有阻塞机制支持。
By600585
2018-9
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![avatar](https://profile-avatar.csdnimg.cn/e2eca62cecb747278803600df3c2e572_weixin_35765225.jpg!1)
稚气筱筱
- 粉丝: 16
- 资源: 320
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)
评论0