upcarta
  • Sign In
  • Sign Up
  • Explore
  • Search

Passing messages between threads

  • Article
  • 2023
  • #Rust(programminglanguage) #Concurrentcomputing
Dora Akbulut
@thoughtassault
(Author)
akbulutdora.github.io
Read on akbulutdora.github.io
1 Mention
1 Collection
I am trying to implement simple message-passing channels in Rust. I want to share/log my learning progress. I think it will be fun to return to it in some months/years. Note: I am... Show More

I am trying to implement simple message-passing channels in Rust. I want to share/log my learning progress. I think it will be fun to return to it in some months/years.

Note: I am a complete beginner to Rust and haven't dealt with this sort of concurrency before.

The task is simple: I will have two channels running on different threads or running as concurrent processes. One of them will be the client, asking for the amount of ice cream the server has. Client's actions can be triggered by command line inputs.

The server will tell the client how much ice cream it has. The ice cream is 1kg to begin with, and melts by 10g each second. Bonus: each question can decrease the amount of ice cream by 20g. This will force the server to implement some kind of concurrent operation handling.

Show Less
Recommend
Post
Save
Complete
Collect
Mentions
See All
Dora Akbulut @thoughtassault ยท Jul 21, 2023
  • Curated in Resources for implementing an Actor Model for Concurrency (in Rust)
Collections
See All
  • Dora Akbulut
    • Subcollection
    Resources for implementing an Actor Model for Concurrency (in Rust)
    4 curations
  • upcarta ©2025
  • Home
  • About
  • Terms
  • Privacy
  • Cookies
  • @upcarta