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, the difference is negligible. We're not prepared to go into all the gory details 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 one thread and start running another. If you 1 slow hit (like a really long database merge operation) and 10 fast hits (like a page with just [date] in it), then the fast hits will all return before the slow hit does. But if the thread-switching is really slow itself, then the OS wastes a lot of time just doing bookkeeping while it's juggling those threads. We tuned MacOS/WebCatalog.acgi to wait 5 seconds before switching threads, because it has the slowest thread-switch overhead. MacOS/WebCatalog Plugin is faster, and NT is about 50/second.All of this is really just to answer the complaint If I hit a URL that takes 20 minutes to complete, the whole server is unresponsive for those 20 minutes. Now it's only unresponsive for 5 seconds, which you can tune yourself by changing the ThreadSwitchTicks preference from 300 ticks (5 seconds) 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 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Spawn not working (PCS Technical Support 1999)
  2. Re: Spawn not working (Peter Ostry 1999)
  3. Re: Spawn not working (PCS Technical Support 1999)
  4. Spawn not working (Peter Ostry 1999)
>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, the difference is negligible. We're not prepared to go into all the gory details 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 one thread and start running another. If you 1 slow hit (like a really long database merge operation) and 10 fast hits (like a page with just [date] in it), then the fast hits will all return before the slow hit does. But if the thread-switching is really slow itself, then the OS wastes a lot of time just doing bookkeeping while it's juggling those threads. We tuned MacOS/WebCatalog.acgi to wait 5 seconds before switching threads, because it has the slowest thread-switch overhead. MacOS/WebCatalog Plugin is faster, and NT is about 50/second.All of this is really just to answer the complaint If I hit a URL that takes 20 minutes to complete, the whole server is unresponsive for those 20 minutes. Now it's only unresponsive for 5 seconds, which you can tune yourself by changing the ThreadSwitchTicks preference from 300 ticks (5 seconds) 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 | Typhoon 619/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:

AddLineItem Problem (1997) Multiple prices (1997) Help name our technology! (1997) AppleScript Error (2001) Beta (?) version of WebCatalog 2.1 (1998) [WebDNA] [announce] Marketing new hire (2009) OT?: Size issues (2001) Server crashes when user saves or views html source (1998) Sku numbers (1997) Search results templates (1996) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) OT Weird Messenger Service message (2002) Up and running ... at last !! (1997) searching multiple databases in single search (1997) WebCatalog for guestbook ? (1997) Search/sort in URL Was: GuestBook example (1997) WebDNA 5.0 Questions (2003) RE: Sorting error (1997) WebDNA Engine Won't Start (2003) problems with 2 tags (1997)