|
關注:1
2013-05-23 12:21
求翻譯:With traditional CGI, a new process is started for each HTTP request. If the CGI program itself is relatively short, the overhead of starting the process can dominate the execution time. With servlets, the Java virtual machine stays running and handles each request with a lightweight Java thread, not a heavyweight oper是什么意思?![]() ![]() With traditional CGI, a new process is started for each HTTP request. If the CGI program itself is relatively short, the overhead of starting the process can dominate the execution time. With servlets, the Java virtual machine stays running and handles each request with a lightweight Java thread, not a heavyweight oper
問題補充: |
|
2013-05-23 12:21:38
與傳統的CGI中,一個新的進程開始為每個HTTP請求。如果CGI程序本身是相對較短,啟動進程的開銷可以支配的執行時間。與servlet,java虛擬機保持運行和處理每一個請求,一個輕量級的Java線程,而不是一個重量級的操作系統進程。同樣,在傳統的CGI中,如果有列印要求對同一CGI程序,CGI程序的代碼被加載到內存中的n倍。然而,與servlets,將n個線程,但只有一個servlet類的單一副本將被加載。這種方法減少了服務器的內存要求,并通過實例較少的對象保存的時間。最后,當一個CGI程序處理完請求,該程序將終止。這種方法使緩存的計算很難,保持開放的數據庫連接,并執行其他優化,依靠持久性數
|
|
2013-05-23 12:23:18
|
|
2013-05-23 12:24:58
|
|
2013-05-23 12:26:38
|
|
2013-05-23 12:28:18
|
湖北省互聯網違法和不良信息舉報平臺 | 網上有害信息舉報專區 | 電信詐騙舉報專區 | 涉歷史虛無主義有害信息舉報專區 | 涉企侵權舉報專區