Singlethreaded
Single-threaded refers to a program that executes all tasks on a single thread of execution, meaning there is one call stack, one program counter, and operations are performed one after another. There is no concurrent execution of code within the same process; context switches between threads do not occur because there is only one thread. Memory access is inherently sequential, reducing the complexity associated with data races and synchronization.
Most modern systems are multi-threaded by default, but single-threaded programs may still rely on asynchronous I/O
Common environments include JavaScript in web browsers, which follows a single-threaded event loop for executing scripts,
Advantages and drawbacks: Simplicity and predictability; no data races; easier debugging. Drawbacks include limited CPU parallelism,
See also: concurrency, multi-threading, event-driven programming, asynchronous I/O.