3 ms·
> Object-oriented? Linux is partially object-oriented NT's OO is actually very pragmatic. Things such as files, pipes, processes and locks are objects that, be
by lobster_johnson 14y ago
> Object-oriented? Linux is partially object-oriented
NT's OO is actually very pragmatic. Things such as files, pipes, processes and locks are objects that, because they are global, can be shared across processes and worked on by many different APIs.
Every object has ACLs that are managed by the kernel itself, so you can create a named pipe that is accessible by users with a given role, for example.
You can use synchronization APIs with heterogenous collections of object handles; for example, you can tel the kernel to wake up on the next mutex, file activity or process exit simply by giving those objects to the appropriate wait API. Unix' select() pales in comparison.