SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Apple Inc.
AAPL 273.80+0.2%Dec 29 3:59 PM EST

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Alomex who wrote (17071)8/23/1998 9:53:00 PM
From: Matthew Johnson  Read Replies (1) of 213177
 
>Multi-threading can be applied for eating spaghetti. When eating, the
>spaghetti keeps falling off,
>so you better spin your fork() and you get a twist of spaghetti(code) >and thus you can eat faster.
>(The technique has also been extended to macarooni.)

cute little saying... did you use it for a memory jog for a exam?

Unfortunatly you are wrong what you have described is multi-processing. The routine fork() basically makes a complete copy of a running application so you end up with two processes running. These processes are totally independent but identical.

multi threading actually is a single application that has different concurrent "threads" of execution. all these threads share the same memory space and run inside one application... the routine best associated with multi threading is either thread() or pthread() for posix's compliant threads

Matt
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext