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 6250895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:30:47+00:00 2026-05-24T13:30:47+00:00

So lately I’ve been reading a lot of article about how concurrent programming is

  • 0

So lately I’ve been reading a lot of article about how concurrent programming is hard, and how concurrent programming with shared state is near impossible. So languages like Erlang (I think this is on, if not the question still makes sense) use the Actor model for concurrency and have no shared state between threads. Now in my time programming concurrent systems I’ve not found concurrency to be that hard – but in general I can fit almost any problem into the producer/consumer paradigm and live without much (if any) shared state. Although is that correct? Are the message queues between threads actually shared state? Or is the producer/consumer model of concurrent programming really a concrete example of the Actor model (that’s my real question). Thoughts?

  • 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-24T13:30:48+00:00Added an answer on May 24, 2026 at 1:30 pm

    Technically the shared messages represent the state of the overarching application, but only if the producers and consumers are themselves stateless (otherwise they simply represent the state(s) of the message-sharing medium/a). The producer/consumer model isn’t so much an example of the actor model as each individual producer and consumer is. The producers (who may be consumers as well, either from the same shared message queues or from external sources) do what they do and spit out some message that gets queued up. The queue itself may be considered an actor, although a passive one, in that it recieves/holds messages, and may distribute them (or just wait for them to be taken). The consumers are actors in that they take/recieve messages from the shared queue, and do work based on those messages.

    So basically my answer is that the producer/consumer model is not an example of the Actor model, but rather an example of a collection of Actors working in a shared environment.

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

Sidebar

Related Questions

Lately, i have reading a lot about MapReduce/Hadoop and think this is where industry
Lately I have been reading about web crawling, indexing and serving. I have found
Lately all modern programming languages have a definitive web site to support, distribute, learn
Lately I have been thinking about developing some basic android app. Its only due
Lately, I've been reading some code that has if (! (a == b) )
Lately, I have seen a lot of questions being asked about output for some
lately I have been writing a lot of tiny plugins for my web projects
Lately I have been doing some numerical method programming in C. For the bug
Lately i've been through a lot of times on a single situation problem: I
Lately I have been thinking about investing in a worthy USB pen drive (something

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.