stdlib_libraries/first_thread.rb
tests/_examples/stdlib_libraries/first_thread.rb in the metorex repository.
# On Linux the program runs on the process's first thread, with no other
# thread beside it, so a call such as `setgroups` has no thread to signal.
p(Dir.children("/proc/self/task").length)