Rahul Bhattacharya wrote (Mon, Feb 10, 2025 at 01:20:13AM +0530):
> Sir,
> I have few questions in the attached slide.
> Vaguely, How this hash table is made?
> To be precise,
> Q1. Are the linked lists in this table made out of multiple processes?(or
> only parent-children processes?)
ALL existing processes have to be stored in this hash table. A very simple implementation may just use a hash table of size 100 (say), and use f(x) = x mod 100 as the hash function.
> Q2. What is contained in each node of a linked list?
Each node ≡ a single proc structure
> Q3. What is there in the index table(the column under the “hash table” in
> the figure) of the hash table?
A pointer to the head node of the i-th linked list.
> Q4. Where is this hash table stored?(like in the ‘kernel data’ part in the
> memory?)
Yes, as shown in a subsequent diagram.
> Q5. Is this hash table corresponding to the current process running in the ?
I did not understand this last question.
Please email with any other questions that you have.