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
20082026
-
…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/
comment by ausjke · 2020-05-24 · in Implementing simple cooperative threads in C -
…libtask: https://github.com/jamwt/libtask And something else: https://github.com/baruch/libwire https://github.com/halayli/lthread (multi-core friendly)
comment by ausjke · 2018-07-14 · in Libaco: A fast and lightweight C asymmetric coroutine library -
…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:…
comment by felixguendling · 2016-05-26 · in Parallelizing the Naughty Dog Engine Using Fibers [video] -
…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 -
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 -
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 -
…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) -
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 -
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 -
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];…
comment by halayli · 2013-10-18 · in Lightweight concurrency library for C, featuring symmetric coroutines -
There is also https://github.com/halayli/lthread which wraps common POSIX functions.
comment by 0x1997 · 2013-10-18 · in Lightweight concurrency library for C, featuring symmetric coroutines -
or use lthread. http://github.com/halayli/lthread
comment by halayli · 2013-08-20 · in Coroutines in one page of C -
…lthread_compute_end(). This is equivalent to async calls but without the need to capture variables. http://github.com/halayli/lthread/ Disclaimer: lthread author
comment by halayli · 2013-08-15 · in Callbacks as our Generation's Goto Statement -
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 -
…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 -
Take a look at lthread http://github.com/halayli/lthread
comment by halayli · 2013-02-19 · in Beej's Guide to Network Programming -
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…
comment by halayli · 2012-07-28 · in Ask HN: On Rob Pike's Concurrency is not Parallelism? -
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? -
Consider using lthread for your c version. You'll save time and gain performance. ( http://github.com/halayli/lthread )
comment by halayli · 2012-03-21 · in In-memory key-value store in C, Go and Python -
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. :)
comment by halayli · 2012-03-03 · in Lthread - C coroutine lib with multicore support -
…with lthread_compute feature, you get the advantages of real threads + the lightness of coroutines. https://github.com/halayli/lthread
comment by halayli · 2012-02-06 · in A Solution to CPU-intensive Tasks in IO Loops