⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
💻
字号:

test_rw_locks shows how to use ACE_Local_RLock, ACE_Local_WLock,
ACE_Remote_RLock, and ACE_Remote_WLock.

Here are the options to test_rw_locks:
% ./test_rw_lock -u
 -i ignore deadlock
 -n <iterations>
 -r <reads>
 -d debug
 -s sleep during writes
 -t <threads>

test_rw_locks spawns <threads> number of threads which perform the
following algorithm:

for <iterations>
  {
    for <reads>
      acquire read lock
    for <reads>
      release read lock
  
    acquire write lock
    if (sleep during writes)
      sleep for 1 second
    release write lock
  }


The output should show that multiple readers can acquire the lock for
reading simultaneously (note that this also tests recursive
acquisition.)  When a writer lock is acquired, the output should show
that no thread holds a reader lock.

To run a test, simply type:
% ./test_rw_lock

This should show output as described above.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -