Re: Spawn not working
This WebDNA talk-list message is from 1999
It keeps the original formatting.
numero = 22279
interpreted = N
texte = >I'm on a rather slow Mac (Performa 6400/180), with WebStar 2.1 and WebCat>Plugin.>My action within [spawn] takes 7 seconds on this machine.>I thought, [spawn] is multitasking and creates a new process. But it seems>to be multithreading.Yes, it is multithreading. For purposes of this list and WebDNA, thedifference is negligible. We're not prepared to go into all the gorydetails on this list.>What is thread switching?>Does it mean, the new thread takes over some time after it is initiated?Thread switching means the amount of overhead time it takes to pause onethread and start running another. If you 1 slow hit (like a really longdatabase merge operation) and 10 fast hits (like a page with just [date] init), then the fast hits will all return before the slow hit does. But ifthe thread-switching is really slow itself, then the OS wastes a lot oftime just doing bookkeeping while it's juggling those threads. We tunedMacOS/WebCatalog.acgi to wait 5 seconds before switching threads, becauseit has the slowest thread-switch overhead. MacOS/WebCatalog Plugin isfaster, and NT is about 50/second.All of this is really just to answer the complaint If I hit a URL thattakes 20 minutes to complete, the whole server is unresponsive for those 20minutes. Now it's only unresponsive for 5 seconds, which you can tuneyourself by changing the ThreadSwitchTicks preference from 300 ticks (5seconds) to something smaller if you like.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I'm on a rather slow Mac (Performa 6400/180), with WebStar 2.1 and WebCat>Plugin.>My action within
[spawn] takes 7 seconds on this machine.>I thought,
[spawn] is multitasking and creates a new process. But it seems>to be multithreading.Yes, it is multithreading. For purposes of this list and WebDNA, thedifference is negligible. We're not prepared to go into all the gorydetails on this list.>What is thread switching?>Does it mean, the new thread takes over some time after it is initiated?Thread switching means the amount of overhead time it takes to pause onethread and start running another. If you 1 slow hit (like a really longdatabase merge operation) and 10 fast hits (like a page with just
[date] init), then the fast hits will all return before the slow hit does. But ifthe thread-switching is really slow itself, then the OS wastes a lot oftime just doing bookkeeping while it's juggling those threads. We tunedMacOS/WebCatalog.acgi to wait 5 seconds before switching threads, becauseit has the slowest thread-switch overhead. MacOS/WebCatalog Plugin isfaster, and NT is about 50/second.All of this is really just to answer the complaint If I hit a URL thattakes 20 minutes to complete, the whole server is unresponsive for those 20minutes. Now it's only unresponsive for 5 seconds, which you can tuneyourself by changing the ThreadSwitchTicks preference from 300 ticks (5seconds) to something smaller if you like.Technical Support | ==== eCommerce and Beyond ====Pacific Coast Software | WebCatalog, WebMerchant,11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,San Diego, CA 92128 | Typhoon619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
PCS Technical Support
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
two of the same named db's open at once (1998)
db caching in bizarre ways (2001)
Multiple fields on 1 input (1997)
Sendmail Recipients (2001)
Free WebDNA snippets (Extending WebCatalog) (1997)
Extended [ConvertChars] (1997)
Loop weirdness (2003)
WebCat2 beta 11 - new prefs ... (1997)
quick question. (2007)
carriage returns in data (1997)
For those of you not on the WebCatalog Beta... (1997)
Inventory Debit Procedure (1998)
Error: Can't open order file. (2005)
Bug Report, maybe (1997)
Truncated value after space - refresh my memory.... (1997)
tcpconnect (1999)
convert date and time (2005)
Dates - Search and Sorting (1999)
all records returned. (1997)
BIG PROBLEMS with Checkboxes!!! (1998)