AI: Update threading model for augment code.
This commit is contained in:
parent
07163df9a4
commit
e84074094b
|
|
@ -10,6 +10,16 @@ architecture:
|
||||||
Core C++ streaming server with protocol implementations and media processing capabilities.
|
Core C++ streaming server with protocol implementations and media processing capabilities.
|
||||||
Uses State Threads (ST) for high-performance coroutine-based networking.
|
Uses State Threads (ST) for high-performance coroutine-based networking.
|
||||||
|
|
||||||
|
threading_model: |
|
||||||
|
Single-threaded, coroutine/goroutine-based application architecture:
|
||||||
|
- No traditional multi-threading issues (no thread switching, async race conditions)
|
||||||
|
- Uses coroutines/goroutines that cooperatively yield control
|
||||||
|
- Context switching occurs during async I/O operations
|
||||||
|
- Different context switch problems compared to multi-threaded applications:
|
||||||
|
* Coroutine state must be preserved across yields by async I/O operations
|
||||||
|
* Shared state can be modified between context switches
|
||||||
|
* Timing-dependent bugs related to when coroutines yield
|
||||||
|
|
||||||
key_directories:
|
key_directories:
|
||||||
- path: "trunk/src/"
|
- path: "trunk/src/"
|
||||||
description: "Main source code directory"
|
description: "Main source code directory"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user