|
demos are
explained here;
a menu at top column right indexes actual topic demos.
Here we demo lock.
problem
Sometimes Wil cannot use a pthread mutex to sync access to mutable state, though that might be the normal thing he'd prefer. More than one process might be involved (so pthread apis don't work) or use of the pthread library might simply be forbidden. In any case, sometimes Wil uses a test-and-set based approach to mutual exclusion for shared state. |
A submenu for demos appears below, letting you
go to the page on a topic written as a demo (as the
demos page defines it).
menu
thorn: todo, names, fd, iovec, assert, log, run, hex, crc, buf, in, out, quote, escape, compare, file, deck, cow, arc, blob, tree, slice, rand, time, stat, hash, heap, node, primes, page, book, pile, stack, atomic, lock « Þ, mutex, thread, map, meter, list, iter, ctype (mu: toy, peg, imm, tag, box, symbol, token, number, bigint, class, method, reader, writer, eval, env, vm, gc, world, pcode, compiler, asm, lathe, lisp, smalltalk, design, weight, jar, card, harp, debug, profile) Some demos are stubs: todo is a demo guide. See toy for mu updates on language pages; names introduces naming schemes.
stub
Most of this page is a stub since the page has only been started and not completed. (See todo.) |
demos « Þ
+ todo + names + fd + iovec + assert + log + run + hex + crc + buf + in + out + quote + escape + compare + file + deck + cow + arc + blob + tree + slice + rand + time + stat + hash + heap + node + primes + page + book + pile + stack + atomic + lock « Þ + mutex + thread + map + meter + list + iter + ctype |