Live data from Hacker News

Go Concurrency versus C and pthreads

denis.papathanasiou.org

1–4 of 4 posts

Re: Go Concurrency versus C and pthreads

#2
One can use the same Go style concurrency in C with libmill [1].

Another interesting choice for concurrency would be lthread [2].

  What’s special about lthread is that it allows you to

  make blocking calls and expensive computations, blocking
 
  IO inside a coroutine, providing you with the advantages 
  
  of coroutines and pthreads. 
[1] http://libmill.org/

[2] https://github.com/halayli/lthread

Re: Go Concurrency versus C and pthreads

#3

One can use the same Go style concurrency in C with libmill [1]. Another interesting choice for concurrency would be lthread [2]. What’s special about lthread is that it allows you to make blocking calls and expensive computations, blocking IO inside a coroutine, providing you with the advantages of coroutines and pthreads. [1] http://libmill.org/ [2] https://github.com/halayli/lthread

Thanks for those references; when I was searching for how to do concurrency in plain C, only pthreads came up in the results.

Re: Go Concurrency versus C and pthreads

#4

One can use the same Go style concurrency in C with libmill [1]. Another interesting choice for concurrency would be lthread [2]. What’s special about lthread is that it allows you to make blocking calls and expensive computations, blocking IO inside a coroutine, providing you with the advantages of coroutines and pthreads. [1] http://libmill.org/ [2] https://github.com/halayli/lthread

Thanks for those references; when I was searching for how to do concurrency in plain C, only pthreads came up in the results.

You are welcome ;) Finding good C resources is rather hard...