posix

makecontext()でマルチタスクっぽく

つい最近まで知らなかったのですが、プログラムのコンテキスト操作用に getcontext(), setcontext(), makecontext(), swapcontext() というCの関数があるそうです(@ucontext.h)。面白そうだったので遊んでみました。getcontext(), setcontext() はコンテキ…