
OS_Process_Thread
a19576
这个作者很懒,什么都没留下…
展开
-
进程与线程的一个简单解释
http://www.ruanyifeng.com/blog/2013/04/processes_and_threads.html进程(process)和线程(thread)是操作系统的基本概念,但是它们比较抽象,不容易掌握。最近,我读到一篇材料,发现有一个很好的类比,可以把它们解释地清晰易懂。1.计算机的核心是CPU,它承担了所有的计算任务。它就像一座工厂,时刻在运行。转载 2013-06-25 14:18:15 · 455 阅读 · 0 评论 -
Linux 多线程编程(Pthread 库)学习笔记
http://blog.youkuaiyun.com/felixit0120/article/details/6609391转载 2013-07-27 18:41:12 · 482 阅读 · 0 评论 -
POSIX Threads Programming
https://computing.llnl.gov/tutorials/pthreads/Table of ContentsAbstractPthreads OverviewWhat is a Thread?What are Pthreads?Why Pthreads?Designing Threaded ProgramsThe Pthreads转载 2013-07-27 18:48:15 · 654 阅读 · 0 评论 -
进程与线程的通信与进程同步
http://198402.blogspot.kr/2011/06/blog-post_16.html转载 2013-11-13 19:01:15 · 549 阅读 · 0 评论 -
获取Linux主机信息的5个命令
http://houzhiqingjava.blog.163.com/blog/static/16739950720136303813860/ Linux 系统管理员在接手一台新的服务器的时候,如果没有好的交接文档,我们可以得到的主机信息就要靠我们自己了。很多信息是可以直接通过命令从主机上获得的,下 面就和大家分享 5 个获取 Linux 主机信息的命令。(注:我使用的是 Ubuntu 1转载 2014-03-04 11:55:55 · 532 阅读 · 0 评论 -
多线程中pthread_cond_signal和pthread_cond_wait的使用
http://www.cnblogs.com/zcmaker/archive/2012/09/29/2708784.html转载 2014-06-25 13:13:49 · 521 阅读 · 0 评论 -
障碍同步Barrier Synchronization
http://blog.youkuaiyun.com/computerhenu/article/details/7532066转载 2014-06-25 16:00:03 · 1014 阅读 · 0 评论 -
ThreadPool
http://cplus.abang.com/od/cplus/a/threadpoolana1.htm转载 2013-07-03 15:18:14 · 622 阅读 · 0 评论 -
linux/ubuntu取消sudo输入密码的办法
http://blog.youkuaiyun.com/mamingjie12/article/details/8997951讲解sudo配置文件/etc/sudoers的格式:# User privilege specificationroot ALL=(ALL) ALL# Allow members of group sudo to execute any command after th转载 2016-02-02 13:28:05 · 1296 阅读 · 0 评论 -
ubuntu中修改主机名方法
1、查看主机名在Ubuntu系统中,快速查看主机名有多种方法:其一,打开一个GNOME终端窗口,在命令提示符中可以看到主机名,主机名通常位于“@”符号后;其二,在终端窗口中输入命令:hostname或uname –n,均可以查看到当前主机的主机名。2、临时修改主机名命令行下运行命令:“hostname 新主机名”其中“新主机名”可以用任何合法字符串来表示。不过采转载 2016-08-28 21:57:23 · 610 阅读 · 0 评论 -
POSIX Threads for Win32
http://www.sourceware.org/pthreads-win32/转载 2013-07-27 18:25:41 · 1242 阅读 · 0 评论 -
Singleton Design Pattern and Thread Safety
http://www.codeproject.com/Articles/96942/Singleton-Design-Pattern-and-Thread-SafetyIntroductionOkay, you're not a newbie, you know all about singletons (only one object instantiation during pro转载 2013-07-03 16:38:42 · 751 阅读 · 0 评论 -
计算机是如何启动的?
http://www.ruanyifeng.com/blog/2013/02/booting.html从打开电源到开始操作,计算机的启动是一个非常复杂的过程。我一直搞不清楚,这个过程到底是怎么回事,只看见屏幕快速滚动各种提示...... 这几天,我查了一些资料,试图搞懂它。下面就是我整理的笔记。零、boot的含义先问一个问题,"启动"用英语怎么说?回答是boot。可是,转载 2013-06-25 14:47:21 · 543 阅读 · 0 评论 -
互斥锁属性PTHREAD_MUTEX_RECURSIVE
http://blog.youkuaiyun.com/kingmax26/article/details/5338065四、互斥锁属性 线程和线程的同步对象(互斥量,读写锁,条件变量)都具有属性。在修改属性前都需要对该结构进行初始化。使用后要把该结构回收。我们用pthread_ mutexattr_init函数对pthread_mutexattr结构进行初始化,用pthread_mutex转载 2013-07-12 15:23:13 · 791 阅读 · 0 评论 -
简析pthread_join()和pthread_detach()
http://blog.youkuaiyun.com/starflier/article/details/4821794首先看一下两个函数的定义:int pthread_join( pthread_t tid , void **status );// 参数tid 是希望等待的线程的线程号,status 是指向线程返转载 2013-07-12 20:50:43 · 522 阅读 · 0 评论 -
一个简单的多线程 pthread_detach
http://blog.sina.com.cn/s/blog_4ef8be9f0100f606.html#include#include#includevoid print_message_function( void *ptr );main ( ){ pthread_t thread1; while(1) {转载 2013-07-12 20:51:16 · 508 阅读 · 0 评论 -
Processes and Threads
http://www.qnx.com/developers/docs/6.4.1/neutrino/getting_started/s1_procs.html转载 2013-06-25 14:40:41 · 1969 阅读 · 0 评论 -
Thread Pools
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686760%28v=vs.85%29.aspxA thread pool is a collection of worker threads that efficiently execute asynchronous callbacks on behalf of the app转载 2013-07-03 15:33:59 · 693 阅读 · 0 评论 -
Thread safety
http://en.wikipedia.org/wiki/Thread-safe转载 2013-07-03 15:46:38 · 533 阅读 · 0 评论 -
C Thread Safe and Reentrant Function Examples
http://www.thegeekstuff.com/2012/07/c-thread-safe-and-reentrant/Re-entrance and thread-safety are two different concepts that can be associated with good programming practices. In this article we wi转载 2013-07-03 16:15:28 · 843 阅读 · 0 评论 -
C 的 Thread Pool 筆記
http://swind.code-life.info/posts/c-thread-pool.html最近被丟到 FreeBSD 跟 C 的世界裡面,沒有 Scala 的 Actor 可以用。所以只好參考別人的 Thread Pool 來看一下,在 C 的世界裡面 Thread Pool 是怎麼實作的。首先先去 StackOverFlow 中尋找是否有人問過類似的問題Existing转载 2013-07-03 15:29:08 · 2363 阅读 · 0 评论 -
Linux多进程"惊群"问题
http://irootlee.com/juicer_thundering_herd/ https://www.cnblogs.com/Anker/p/7071849.html转载 2018-09-07 15:02:56 · 203 阅读 · 0 评论