v********a 发帖数: 14 | 1 真心不会做, 陈恳发问
One single-threaded program on PC, one single-threaded program on server
that has "read input", "process", "send output" steps. The user enters a
request on the PC, the request is sent to the server, and the server
processes it for two minutes and gets back to users. When the server is
processing the request, the user's screen freezes. The minmum time interval
between two requests from the user is four minutes. Now we will have five
more users, what can you do to make the system reponds better? Each user can
have seperate PCs. | r****t 发帖数: 10904 | 2 run a daemon spawn multiple instances on server? | C***y 发帖数: 2546 | 3 Asynchronous I/O?
interval
can
【在 v********a 的大作中提到】 : 真心不会做, 陈恳发问 : One single-threaded program on PC, one single-threaded program on server : that has "read input", "process", "send output" steps. The user enters a : request on the PC, the request is sent to the server, and the server : processes it for two minutes and gets back to users. When the server is : processing the request, the user's screen freezes. The minmum time interval : between two requests from the user is four minutes. Now we will have five : more users, what can you do to make the system reponds better? Each user can : have seperate PCs.
| c*****l 发帖数: 879 | | q****x 发帖数: 7404 | 5 make it multi-threading.
interval
can
【在 v********a 的大作中提到】 : 真心不会做, 陈恳发问 : One single-threaded program on PC, one single-threaded program on server : that has "read input", "process", "send output" steps. The user enters a : request on the PC, the request is sent to the server, and the server : processes it for two minutes and gets back to users. When the server is : processing the request, the user's screen freezes. The minmum time interval : between two requests from the user is four minutes. Now we will have five : more users, what can you do to make the system reponds better? Each user can : have seperate PCs.
|
|