PDA

View Full Version : fork() ?


Jason
02-15-2003, 01:07 AM
In linux or Unix there is a C++ command fork(), I was wondering if there is a javascript version of this that I can have a client run?

Jason

whammy
02-15-2003, 01:34 AM
What does fork() do?

Spookster
02-15-2003, 04:17 AM
Originally posted by whammy
What does fork() do?

fork() works very closely with spoon() and knife() :D

ok maybe not. It deals with creating child processes. Just like a fork in the road splits off to multiple paths...so does a process.

Roy Sinclair
02-17-2003, 03:30 PM
Javascript doesn't support fork calls. Think instead of Javascript as an event driven language, user interactions are the primary events but you can also set up background tasks that execute regularly using the SetTimeout and/or SetInterval functions. Note that looping code in javascript will lock out the user and eventually time out so you need to think in terms of shorter functions and releasing control back to the user.

Spudhead
02-17-2003, 04:41 PM
Sounds similar to switch() to me.

<flounders back to his nested table tags> :rolleyes: