タグ
目下の目標はPerlMachineでthreads.pmを使えるようにすること。マルチスレッドについて何もわかってなくて知らないけれど、とりあえず何もしないと何も始まらないのでmicroperlをuconfig.hの4348行目のithreadsマクロを有効にしてコンパイルしてみた。windowsの... 続きを読む
プロフィール Author: kosaki 連絡先はコチラ ブログ検索 最近の記事 SystemTapのBug名のセンスが素晴らしすぎる件について (10/04) Unified trace buffer (10/04) Lee Schermerhorn に売られた件について (10/03) [kernel watch没ネタ集] long nop バトル (10/... 続きを読む
c, メモだらだら書くよ 初めてのコード #include void* f(void* p) { puts("hello"); sleep(1); puts("hello"); sleep(1); puts("hello"); } int main(int argc, char** argv) { pthread_t thread; pthread_create(&thread, NULL, f, (void*)NULL); pthread_joi... 続きを読む
Subject: A Bug in pthread_cond_destroy? From: "Kazuho Oku" <email@hidden> Date: Wed, 9 Jan 2008 16:25:51 +0900 Delivered-to: email@hidden Delivered-to: email@hidden Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h... 続きを読む
また Linux カーネルの話です。Linux では fork によるマルチプロセスと、pthread によるマルチスレッドでの並行処理を比較した場合、後者の方がコストが低く高速と言われます。「スレッドはメモリ空間を共有するので、マルチプロセスとは異なりコンテキストス... 続きを読む
An implementation shall not introduce cancellation points into any other functions specified in this volume of IEEE Std 1003.1-2001. The side effects of acting upon a cancellation request while suspended during a call of a function are the sa... 続きを読む

