搜索
查看: 1357|回复: 4

Multi-Threading AMX module[分享]

[复制链接]
发表于 2003-6-24 23:31:49 | 显示全部楼层 |阅读模式 来自 中国–浙江–杭州
好像看到有人要的

Module : mthread
Type : AMX (no MM)
Version : 0.4
Author : dJeyL

About :
This module allows to run functions in separate threads, saving from freezes when a plugin would have to make heavy things.

An example AMX plugin is provided, running 60,000,000+ loops in the background. Although it takes several seconds to terminate, this does not affect server performance, and the game is still fully available.

The demo plugin also uses thread queuing features (appeared in v0.3) and thread_sleep native (new).

Changelog :
fixed setting high system priority under Win32

added native : thread_sleep(seconds)

You don't have to recompile your plugins.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
 楼主| 发表于 2003-6-25 09:02:03 | 显示全部楼层 来自 中国–浙江–杭州
这个模块 使得 功能可以多线程运行 缓解插件在工作繁重时的 停滞
其中提供一个插件例子  在后台运行60000000多次的循环  几秒种后结束
但它将不会影响服务器的性能

你已有的插件 不需要重新编译   

看上去 蛮有用的  。。。 可以提高服务器性能
回复

使用道具 举报

发表于 2003-6-27 23:34:26 | 显示全部楼层 来自 中国–广西–南宁
能提高多少性能?和CPU有关吗?
回复

使用道具 举报

匿名  发表于 2003-6-28 13:04:56 来自 Invalid
请加个安装方法!行不?!
 楼主| 发表于 2003-6-28 22:44:36 | 显示全部楼层 来自 中国–浙江–杭州
具体提高多少  也不清楚

至于安装   就是   
复制  。dll  文件 到  amx/dlls/
在 module.ini  和 metamod/plugins.ini 里各 加上  一行 就可以了

和 其它的  是一样的啊
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表