I am fresher on Nodejs, I understand nodeJS have V8 engine and LibUV. LivUV will process asynchronous processing and it write by C programing language.
How C work for across OS?
My reference documents:
https://docs.libuv.org/en/v1.x/design.html
https://blog.libtorrent.org/2012/10/asynchronous-disk-io/
2
C is a system-level programming language that can directly interact with the operating system’s APIs (like memory management, file I/O, network operations).
When we want to write cross-platform code in C (i.e., code that works on different operating systems like Linux, Windows, or macOS), they often use conditional compilation or abstraction layers that call different OS-specific APIs depending on which OS the code is being compiled for.
1