Question: You have given 10 nodes and 10 buffer and the limit of buffer is 18, Write JavaScript code for filling next buffer once buffer reached
- You have given 10 nodes and 10 buffer and the limit of buffer is 18, Write JavaScript code for filling next buffer once buffer reached to its limit (i.e., 10) also print message when buffer exceeding the limit and filling next buffer. Following is the sample output for load distribution of 10 nodes.
| Node Id | Buffer1 | Buffer2 | Buffer10 |
| 1 | 6 | 0 | 0 |
| 1 | 18 | 1 | 0 |
| 2 | 18 | 2 | 0 |
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
