目前分類:演算法/資料結構/計算理論/系統程式 (20)

瀏覽方式: 標題列表 簡短摘要

設計可重入和執行緒安全的程式碼

Writing Reentrant and Thread-Safe Code

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

Search and Replace Recursively using sed and grep on Linux/Mac

 

Bluelove1968 發表在 痞客邦 留言(1) 人氣()

Quick Reference Cards 

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

grep 語法

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

 

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

★ USB 驅動程式「libusb 函式庫」的介紹及其使用範例 ★

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

量子傳訊,絕對機密
BEST-KEPT SECRETS

利用量子技術來傳送秘密鑰匙, 資料的保密將更為安全。

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

Pthread 優先權的設定範例

pthread priority setting

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

POSIX Threads Programming

 

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

Multi-Threaded Programming With POSIX Threads

Table Of Contents:

  1. Before We Start...
  2. What Is a Thread? Why Use Threads?
  3. Creating And Destroying Threads
  4. Synchronizing Threads With Mutexes
    1. What Is A Mutex?
    2. Creating And Initializing A Mutex
    3. Locking And Unlocking A Mutex
    4. Destroying A Mutex
    5. Using A Mutex - A Complete Example
    6. Starvation And Deadlock Situations
  5. Refined Synchronization - Condition Variables
    1. What Is A Condition Variable?
    2. Creating And Initializing A Condition Variable
    3. Signaling A Condition Variable
    4. Waiting On A Condition Variable
    5. Destroying A Condition Variable
    6. A Real Condition For A Condition Variable
    7. Using A Condition Variable - A Complete Example
  6. "Private" thread data - Thread-Specific Data
    1. Overview Of Thread-Specific Data Support
    2. Allocating Thread-Specific Data Block
    3. Accessing Thread-Specific Data
    4. Deleting Thread-Specific Data Block
    5. A Complete Example
  7. Thread Cancellation And Termination
    1. Canceling A Thread
    2. Setting Thread Cancellation State
    3. Cancellation Points
    4. Setting Thread Cleanup Functions
    5. Synchronizing On Threads Exiting
    6. Detaching A Thread
    7. Threads Cancellation - A Complete Example
  8. Using Threads For Responsive User Interface Programming
    1. User Interaction - A Complete Example
  9. Using 3rd-Party Libraries In A Multi-Threaded Application
  10. Using A Threads-Aware Debugger

Before We Start...

This tutorial is an attempt to help you become familiar with multi-threaded programming with the POSIX threads (pthreads) library, and attempts to show how its features can be used in "real-life" programs. It explains the different tools defined by the library, shows how to use them, and then gives an example of using them to solve programming problems. There is an implicit assumption that the user has some theoretical familiarity with paralell programming (or multi-processing) concepts. Users without such background might find the concepts harder to grasp. A seperate tutorial will be prepared to explain the theoreticl background and terms to those who are familiar only with normal "serial" programming.

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

論P,NP,NP-hard,NP-complete問題

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

如何寫一個會自我複製(self-reproduce)的程式

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

演算法(Algorithm)——一詞的由來

Bluelove1968 發表在 痞客邦 留言(1) 人氣()

Lex 與 Yacc 介紹

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

語法剖析自動生成器CScanGenner的設計與實現

 

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

學習編譯原理的相關建議

編譯原理一般認為是較難的一門課.從網上的評論來看,有人說學了一年半軟體理論,就一門編譯看不懂;有人甚至說它是大本軟體課程裡最難的一門;有人抱怨國內的編譯教材沒有一本容易懂的。

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

一道編譯原理習題及答案

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

從lex&yacc說到編譯器(1.正規表達式)

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

《編譯原理》有限自動機的 C 程式語言範例

Bluelove1968 發表在 痞客邦 留言(0) 人氣()

編譯原理學習導論

Bluelove1968 發表在 痞客邦 留言(0) 人氣()