Ruby - Concurrent Programming
What is the immediate effect of executing
Thread.new { puts 'Running' } in Ruby?Thread.new { puts 'Running' } in Ruby?Thread.newstart is called. is incorrect because Ruby threads start immediately upon creation. It pauses the main thread until the new thread finishes execution. is wrong because the main thread continues unless join is called. It creates a thread but runs the block synchronously in the main thread. is false as the block runs in the new thread, not synchronously.Thread.new starts thread immediately [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions