File descriptor, handle. Potayto, potahto.
File descriptor, handle. Potayto, potahto.
Under Windows, a lot more concepts are handles than just files, directories, symbolic links, pipes, mail slots, ..., e.g.
- processes, threads
- synchronization objects (mutex, semaphore)
- events (CreateEventEx)
- I/O Completion Ports
- Sections (ZwCreateSection) and Partitions (https://www.geoffchappell.com/studies/windows/km/ntoskrnl/ap... ) for memory
- waitable timers
- GUI components (HWND)
The original UNIX model has (considering the current state of GNU/Linux) similarly buried under a progressively bigger truckload of crap year upon year and is no longer as clean as it once was.
A central difference is: the NT kernel stayed rather clean (the crapload rather happened in the Windows subsystem).