L leonye Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-27 #1 麻烦各位大虾,比如有多个浏览器同时请求一个CGI, 那么Web Server是否会运行此CGI的多个实例呢? 可惜分数不多,要不会来个200分。
L littlegrass Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-27 #2 我没做过CGI,但我想应该是运行多个实例。只不过处理数据库时要 考虑各实例间冲突问题。(瞎猜的,看其他大虾怎么说! *_^)
L leonye Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-27 #3 如果用Delphi写CGI,而且是运行多个实例, 那么它们之间共享信息会相当麻烦, 不知各位有何高见
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-27 #4 Hehe, The server creates as many processes as the number of requests received. So, they are running simultaneously
Hehe, The server creates as many processes as the number of requests received. So, they are running simultaneously
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-27 #5 You can use lock, semaphore, shared memory, etc to isolate and synchronize your multi-instances of CGI applications.
You can use lock, semaphore, shared memory, etc to isolate and synchronize your multi-instances of CGI applications.
Z zx Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-28 #6 用ISAPI的DLL会好一些!进程对话容易,并且不会起多个 实例!
P pegasus Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-28 #7 >用ISAPI的DLL会好一些!进程对话容易,并且不会起多个 实例! 是啊, 不过仍然需要解决同步问题, 有时候为了可靠, 还不得不限制 IIS, 让它使用独立的进程来运行某些CGI(否则, 一个CGI出问题, 大家都 跟着倒霉)
>用ISAPI的DLL会好一些!进程对话容易,并且不会起多个 实例! 是啊, 不过仍然需要解决同步问题, 有时候为了可靠, 还不得不限制 IIS, 让它使用独立的进程来运行某些CGI(否则, 一个CGI出问题, 大家都 跟着倒霉)
D doubt Unregistered / Unconfirmed GUEST, unregistred user! 1998-11-28 #8 每一个CGI请求肯定会在服务器上产生多个实例,这是CGI的一个缺点。 可通过共享内存来共享信息。