S
S
Semyon Prikhodko2014-08-12 14:33:25
linux
Semyon Prikhodko, 2014-08-12 14:33:25

Good user-space threading libraries for C++?

The task is to write serious network software that requires support for a large number of simultaneous requests. There is an idea to simplify development / debugging / support by replacing the use of the asynchronous boost:: asio API with work with preemptive threads in user-space. So that they can be produced in millions, as in Erlang.
Can you suggest a good library for such multithreading with support for a wide range of system calls (linux)? Erlang not to offer.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel Sysolyatin, 2014-08-12
@PSyton

Boost Coroutine? It seems that asio is friends with him.

S
synacker, 2014-08-12
@synacker

If compilers support C++11, then it is possible without third-party libraries.

L
Lolshto, 2014-08-13
@Lol4t0

I don't think preemptive multitasking in userspace is possible in native code. If you have launched some code for execution, then you will not be able to control it from userspace.
In the same erlang there is a virtual machine that controls the execution.
You can also try golang if you don't like erlang. Although there, it seems, too, light threads are built on the basis of coroutines

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question