السلام عليكم ورحمه الله وبركاته
In the timesharing problem solved by the operating system, the operating system must maintain a list of present users and must alternately allow each user to use a small slice of CPU time, one user at a time. The operating system will pick a user; let him/her use a small amount of CPU time and then move on to the next user, etc. For this application, there should be no NULL pointers unless there is absolutely no one requesting CPU time. 1. What data structure do you suggest to simulate the job of the timesharing problem? 2. After you have decided the appreciate data structure to be used, write a C++ program, this program should have the following specifications: a. Printing out the information of users that requesting CPU time. b. Counting the number of users that requesting CPU time. c. Use appreciate driven menu.
ما المقصود من السؤال وما فكرته
فقط شرح السؤال والفكرة وليس طلب للحل
وإن شاء الله بس افهمه أدرج حليّ

