Hacker GitHub

← All repos

halayli/lthread

View on GitHub ↗ ★ 817 C

lthread, a multicore enabled coroutine library written in C

28 mentions on Hacker News by 8 people: 7 stories, 21 comments · first 2011-12-08 · latest 2020-05-24

Mentions per year 28 mentions · busiest year 2012 (10)
20082026
  1. …https://github.com/hnes/libaco https://github.com/baruch/libwire https://swtch.com/libtask/ https://github.com/halayli/lthread https://github.com/Tencent/libco https://byuu.org/library/libco/
  2. …libtask: https://github.com/jamwt/libtask And something else: https://github.com/baruch/libwire https://github.com/halayli/lthread (multi-core friendly)
  3. …per thread): * https://github.com/RichieSams/FiberTaskingLib * https://swtch.com/libtask/ * https://github.com/halayli/lthread * https://github.com/stevedekorte/coroutine RethinkDB are using something like this:…
  4. …providing you with the advantages of coroutines and pthreads. [1] http://libmill.org/ [2] https://github.com/halayli/lthread
    comment by kenOfYugen · 2015-12-26 · in Go Concurrency versus C and pthreads
  5. You might want to take a look at: lthread & lthread cpp https://github.com/halayli/lthread https://github.com/halayli/lthread_cpp
    comment by halayli · 2015-09-17 · in Asynchronous IO in Rust
  6. here's a similar technique I use in lthread to generate functions: https://github.com/halayli/lthread/blob/master/src/lthread_s... the arguments are complete function signature
    comment by halayli · 2015-02-28 · in Templating in C
  7. …those interested in coroutines, check out lthread & lthread cpp bindings (disclaimer: author) Code: https://github.com/halayli/lthread https://github.com/halayli/lthread_cpp Docs: http://lthread.readthedocs.org/en/latest/…
    comment by halayli · 2014-11-17 · in Coroutines in C (2000)
  8. Lthread ( http://github.com/halayli/lthread ) is basically an M:N threading model. You can run an lthread scheduler per core.
    comment by halayli · 2013-11-13 · in The future of M:N threading
  9. You can also write it in C and use lthread. It will be faster than what Go has to offer. https://github.com/halayli/lthread
    comment by halayli · 2013-11-12 · in Two years of production Go at CloudFlare
  10. I think lthread ( http://github.com/halayli/lthread ) is the only coroutine lib that allows you to block inside a coroutine and do heavy computation without affecting other coroutines. Example: void my_function(void* arg) { char buf[1024];…
  11. There is also https://github.com/halayli/lthread which wraps common POSIX functions.
  12. or use lthread. http://github.com/halayli/lthread
    comment by halayli · 2013-08-20 · in Coroutines in one page of C
  13. …lthread_compute_end(). This is equivalent to async calls but without the need to capture variables. http://github.com/halayli/lthread/ Disclaimer: lthread author
  14. Relevant: super lightweight co-routines in C, with (limited) support for blocking as well: https://github.com/halayli/lthread
    comment by beagle3 · 2013-07-03 · in A Field Guide to Lua Coroutines
  15. …but I'll be merging it soon: http://webmon.com/blog/2013/02/19/lthread-now-supports-userl... https://github.com/halayli/lthread/blob/dev/src/lthread_io.c
    comment by halayli · 2013-03-16 · in Luvit – Asynchronous I/O for Lua
  16. Take a look at lthread http://github.com/halayli/lthread
    comment by halayli · 2013-02-19 · in Beej's Guide to Network Programming
  17. Take a look at lthread: https://github.com/halayli/lthread lthread supports concurrency and parallelism using pthreads. Each lthread scheduler runs its own lthreads concurrently, or better said, one at a time. But from an observer's…
  18. In lthread, a coroutine lib, ( http://github.com/halayli/lthread ) you can make blocking calls inside coroutines. It gives you the lightness of event-driven, the advantages of threads, and the simplicity of sequential statements. And it…
    comment by halayli · 2012-04-22 · in Why Erlang?
  19. Consider using lthread for your c version. You'll save time and gain performance. ( http://github.com/halayli/lthread )
  20. I do have few small code snippets + examples in the docs. https://github.com/halayli/lthread/tree/master/src/examples thanks for the heads up. :)
  21. …with lthread_compute feature, you get the advantages of real threads + the lightness of coroutines. https://github.com/halayli/lthread