Posts

Showing posts with the label ractors

Rails 3 Ractor : a parallel execution feature of Ruby without thread-safety concerns

Hi, This is  Shubham Mishra  from India,  this is the part of  Ruby on Rails  exploration journey.  In this post we will discuss about the ruby's some special concepts and I am sure you will get excited to make your hands dirty with those code, so why to wait let's get started... Ruby 3 introduces Ractors, commonly referred to as Ruby Actors, as a new concurrency feature. They enable us to execute several threads of code concurrently without having to share memory or state. As a result, concurrent and parallel programming is made simpler, which can enhance performance and scalability. It's necessary to grasp the fundamentals of concurrency and parallelism in programming before we delve into the specifics of Ractors. Concurrency is the capacity of a programme to manage many activities or execution threads concurrently. The term "parallelism" describes a program's capacity to run numerous processes or threads concurrently while utilising multiple processor...