2013年12月13日

多线程

摘要: Thread safety A piece of code is thread-safe if it only manipulates shared data structures in a manner that guarantees safe execution by multiple threads at the same time. #include int increment_counter (){ static int counter = 0; static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZ... 阅读全文

posted @ 2013-12-13 06:03 brave_bo 阅读(172) 评论(0) 推荐(0)

导航