New answers tagged architecture
0
To answer question A:
Yes, the delivery and handling of the signal is not entirely transparent to the read().
The read() running halfway may be occupying some resources while it's interrupted by the signal. And the signal handler of the signal may call another read() (or any other async-signal safe syscalls) as well. So the read() interrupted by the signal ...
0
Now, with what objects are you dealing in a shell most of the time? It's files/directories, processes and their interaction. So it should like f1.edit or something like currentFile=f1.c ; .edit ; .compile ; .run. Or d1.search(filename='*.c' string='int \*'). Or p1.stop, p1.bg. That's my understanding of an ooshell.
2
You don't need much bash code to implement classes or objects in bash.
Say, 100 lines.
Bash has associative arrays that can be used to implement a simple Object system with inheritance, methods and properties.
So, you would might define a class like this:
class Queue N=10 add=q_add remove=q_remove
Creating an instance of this Queue might be done like ...
2
The kernel is a piece of software acting as a mid layer in what consists a computer, often administering the hardware resources and offering services to the various applications.
The services provide by the kernel, include, but are not limited to:
Abstracts and administers the applications running on a user machine so that they share effectively hardware ...
-1
It is loaded in memory all the time, and handles the most basic abstractions of the system (devices, files, network connections). It certainly is very central.
Top 50 recent answers are included
