摘要: Time Stamp CounterFrom Wikipedia, the free encyclopediaJump to: navigation, searchThe Time Stamp Counter is a 64-bit register present on all x86 processors since the Pentium. It counts the number of t... 阅读全文
posted @ 2010-09-23 22:49 史莱姆 阅读(1052) 评论(0) 推荐(0) 编辑
摘要: Asio Portable networking, including sockets, timers, hostname resolution and socket iostreams. Author(s) Chris Kohlhoff First Release 1.35.0 Standard Build & Link Categories Concurrent Programmi... 阅读全文
posted @ 2010-09-23 11:49 史莱姆 阅读(218) 评论(0) 推荐(0) 编辑
摘要: http://news.ddaaoo.com/Topic/view/id-57255 关于Linux的消息队列: mq_open用于日志记录中,当有新日志添加到队列中,我就mq_send一个消息,日志记录线程就开始记录数据,直至日志队列为空,然后继续等待。但是,遇到了第一个情况:近乎死锁的长时间等待!因为如果设置为阻塞的,mq_send将在发送胜利后之后返回!这很容易导致死锁!试想,如果大量的消息... 阅读全文
posted @ 2010-09-23 11:19 史莱姆 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 今天发信问了一个大牛关于tcp socket send 时间的问题.没想到很快就收到回复, 而且解决了心里纠结很久的一个事情.------------------------------------------------------------------------------------------------------- Hi Richard, Thanks for your time,... 阅读全文
posted @ 2010-09-23 04:43 史莱姆 阅读(375) 评论(0) 推荐(0) 编辑
摘要: (6) Is SQLite threadsafe? SQLite is threadsafe. We make this concession since many users choose to ignore the advice given in the previous paragraph. But in order to be thread-safe, SQLite must be ... 阅读全文
posted @ 2010-09-23 04:41 史莱姆 阅读(552) 评论(1) 推荐(0) 编辑