National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)

マルチスレッド並列機能

マルチスレッド
EusLispのマルチスレッド化

構文
  1. スレッドの作成
    (make-thread n) ;; n個のフリースレッドをプールに入れる
  2. スレッドへの計算の割り付け
    (thread func . arg) ;; thread オブジェクトを返す
    (wait-thread thread) ;; threadから結果を受け取る
    (parlist . arg) ;; 引数を並列に評価して結果をリストにする
  3. 同期
    (mutex lock . form) ;; 相互排除をかけてformを評価
    (reader R/W-lock . form ) ; リーダーライタ・ロック
    (writer R/W-lock . form )
    condition-variable, semaphore, sync-memory-port, barrier-sync

並列性能