From edd3b6bc34f211bd3d58642d0c69ce1b5bb9dc3b Mon Sep 17 00:00:00 2001
From: gdamore The system may impose limits on the number of threads that can be created.
Typically applications should not create more than a dozen of these.
If greater concurrency or scalability is needed, consider instead using
-an asynchronous model using nng_aio structures.nng_aio structures.
typedef struct nng_thread nng_thread;
@@ -287,7 +287,7 @@ an asynchronous model using
The nng_thread structure represents a thread, which is a single execution context.
A given thread will have its own stack, and CPU registers. However global state, as well
as values allocated on the heap, will be shared and accessible to all threads in the system
-(See the Synchronization chapter for functions to help with data sharing between different threads.)
+(See the Synchronization chapter for functions to help with data sharing between different threads.)
Multiple threads can be thought of as running concurrently, even though
they might not actually do so.
I/O operations that block (i.e. wait for completion) will block the
@@ -314,8 +314,8 @@ It also has the effect of blocking execution in the caller until thr ha
to provide a name for the thread. This may change how the thread is represented
in debuggers. Not all platforms support setting the thread name.
See Also
-
+