Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created January 27, 2012 16:01
Show Gist options
  • Save arturaz/1689474 to your computer and use it in GitHub Desktop.
Save arturaz/1689474 to your computer and use it in GitHub Desktop.
arturas@zeus:~/work/spacegame/server$ ruby ctest.rb
Starting simulation
18:03:09 [worker_1|#<Thread:0x917da50>] --- message arrived ---
18:03:09 [worker_1|#<Thread:0x917da50>] Starting work for 1 seconds.
18:03:09 [worker_2|#<Thread:0x909136c>] --- message arrived ---
18:03:09 [worker_2|#<Thread:0x909136c>] Starting work for 3 seconds.
18:03:10 [worker_1|#<Thread:0x917da50>] Done working.
18:03:10 [worker_1|#<Thread:0x917da50>] --- message arrived ---
18:03:10 [worker_1|#<Thread:0x917da50>] Waiting until worker_2 is done.
18:03:10 [worker_1|#<Thread:0x917da50>] --- message arrived ---
18:03:10 [worker_1|#<Thread:0x917da50>] Starting work for 1 seconds.
18:03:11 [worker_1|#<Thread:0x917da50>] Done working.
18:03:12 [worker_2|#<Thread:0x909136c>] Done working.
18:03:12 [worker_2|#<Thread:0x909136c>] Sync requested by worker_1.
18:03:12 [worker_1|#<Thread:0x917da50>] worker_2 is done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment