上一页 1 2 3 4 5 6 ··· 9 下一页

2015年11月24日

Operating System: Three Easy Pieces --- Locks: Test and Set (Note)

摘要: Because disabling interrupts does not work on multiple processors, system designers started toinvent hardware support for locking. The earliest multip... 阅读全文

posted @ 2015-11-24 13:36 Persistence 阅读(510) 评论(0) 推荐(0)

2015年11月22日

Operating System: Three Easy Pieces --- Locks: Pthread Locks (Note)

摘要: The name that the POSIX library uses for a lock is mutex, as it is used to provide mutual exclusionbetween threads, i.e., if one thread is in the crit... 阅读全文

posted @ 2015-11-22 12:53 Persistence 阅读(306) 评论(0) 推荐(0)

Operating System: Three Easy Pieces --- Locks (Note)

摘要: From the introduction to concurrency, we saw one of the fundamental problems in concurrentprogramming: we could like to execute a series of instructio... 阅读全文

posted @ 2015-11-22 11:22 Persistence 阅读(165) 评论(0) 推荐(0)

2015年11月19日

Operating System: Three Easy Pieces --- Condition Variables (Note)

摘要: The other major component of any threads library, and certainly the case with POSIX threads, isthe presence of a condition variable. Condition variabl... 阅读全文

posted @ 2015-11-19 13:14 Persistence 阅读(222) 评论(0) 推荐(0)

Operating System: Three Easy Pieces --- Locks (Note)

摘要: Beyond thread creation and join, probably the next most useful set of functions provided by thePOSIX threads library are those for providing mutual ex... 阅读全文

posted @ 2015-11-19 13:02 Persistence 阅读(192) 评论(0) 推荐(0)

2015年11月15日

Operating System: Three Easy Pieces --- Thread API (Note)

摘要: This chapter briefly covers the main properties of the thread API. Each part will be explainedfurther in the subsequent chapters, as we know how to us... 阅读全文

posted @ 2015-11-15 08:52 Persistence 阅读(270) 评论(0) 推荐(0)

2015年11月13日

Operating System: Three Easy Pieces --- One More Problem (Note)

摘要: This chapter has set up the problem of concurrency as if only one type of interaction occursbetween threads, that of accessing shared variables and th... 阅读全文

posted @ 2015-11-13 13:35 Persistence 阅读(267) 评论(0) 推荐(0)

ULK --- Chap3 Processes: Performing the Process Switch

摘要: A process switch may occur at just one one well-defined point: the schedule() function, which is discussedat length in Chapter 7. Here, we are only co... 阅读全文

posted @ 2015-11-13 11:01 Persistence 阅读(185) 评论(0) 推荐(0)

ULK --- Chap3 Processes: Process Switch

摘要: To control the execution of process, the kernel must be able to suspend the execution of the processrunning on the CPU and resume the execution of som... 阅读全文

posted @ 2015-11-13 06:32 Persistence 阅读(247) 评论(0) 推荐(0)

2015年11月11日

Operating System: Three Easy Pieces --- The Wish For Atomicity (Note)

摘要: One way to solve this problem would be to have more powerful instructions that, in a singlestep, did exactly whatever we needed done and thus removed ... 阅读全文

posted @ 2015-11-11 13:43 Persistence 阅读(243) 评论(0) 推荐(0)

2015年11月10日

ULK --- Chap3 Processes: Handling Wait Queues

摘要: A new wait queue head may be defined by using the DECLARE_WAIT_QUEUE_HEAD(name) macro,which statically declares a new wait queue head variable called ... 阅读全文

posted @ 2015-11-10 12:39 Persistence 阅读(177) 评论(0) 推荐(0)

2015年11月9日

ULK --- Chap3 Processes: How Processes Are Organized

摘要: The runqueue lists group all processes in a TASK_RUNNING state. When it comes to groupingprocesses in other states, the various states call for differ... 阅读全文

posted @ 2015-11-09 09:07 Persistence 阅读(164) 评论(0) 推荐(0)

ULK --- Chap3 Processes: Relationships Among Processes

摘要: Processes created by a program have a parent/child relationship. When a process creates multiple children,these children have sibling relationships. S... 阅读全文

posted @ 2015-11-09 08:32 Persistence 阅读(114) 评论(0) 推荐(0)

ULK --- Chap3 Processes: Lists of Tasking_Running processes

摘要: When looking for a new process to run on a CPU, the kernel has to consider only the runnable processes(that is, the processes in the TASK_RUNNING stat... 阅读全文

posted @ 2015-11-09 06:37 Persistence 阅读(184) 评论(0) 推荐(0)

ULK --- Chap3 Processes: Doubly linked lists

摘要: Before moving to and describing how the kernel keeps track of the various processes in the system,we would like to emphasize the role of special data ... 阅读全文

posted @ 2015-11-09 05:27 Persistence 阅读(225) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 9 下一页

导航