Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7512719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:57:22+00:00 2026-05-29T23:57:22+00:00

I understand that in Ruby running on YARV, threads mean concurrency rather than parallelism.

  • 0

I understand that in Ruby running on YARV, threads mean concurrency rather than parallelism. My question is: what are the situations in which concurrency alone can improve performance? For example, I can imagine that concurrency would improve performance when dealing with several IO streams at the same time – if one task is slow, that doesn’t mean all the next tasks in the stack have to wait for that task to finish. Am I right? Are there any other cases like this? Is the [hopes that YARV will ever remove the GIL]/[overhead of creating threads with the GIL] ratio worth starting to use threads in Ruby at the present moment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:57:23+00:00Added an answer on May 29, 2026 at 11:57 pm

    Concurrency can be enormously beneficial in situations where you have multiple tasks that all need to wait for some external stimulus that does not occur frequently (for example, network data becoming available, disk reads finishing, etc.) If you just sat in a loop waiting for one of these operations to happen, you would either

    1. Wait for a long time for some single event to finish while others have already finished and are waiting for you to look at them, or
    2. Waste CPU power looping over hundreds of different events that haven’t fired looking for events that actually have fired.

    Concurrency is also useful in designing programs that are inherently event-driven, such as waiting for different UI events to occur. In this case, you can designate tasks that should fire in response to different UI events, and the processor can just sit dormant or working on other tasks without needing to explicitly wait for the tasks that haven’t triggered to run. As soon as an event occurs, those threads can wake up and share the CPU processing time.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to understand how Ruby blocks work, and to do that I've
I understand that requests are served by different threads, but do they all come
I understand that method_missing is something of a last resort when Ruby is processing
I am just starting Ruby and learning the concept of modules. I understand that
I'm trying to understand the difference between Ruby threads pre-1.9 and 1.9 (in the
I understand that x == y in Ruby interpreted as a.==(y) . I tried
Ruby Newbie here, I understand that everything is an object in Ruby, one thing
I found it a bit hard to understand that Ruby on Rails won't POST
As a Ruby on Rails newbie, I understand that the @ and : references
I understand that some countries have laws regarding website accessibility. In general, what are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.