Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apartment Model Threading
Message
From
15/08/1999 05:36:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00252574
Message ID:
00253827
Views:
19
>>Hi All:
>>
>>This is my understanding of VFP multithreading. Comments are appreciated.
>>
>>VFP handles multiple threads of operation by creating an apartment containing all the objects created on that thread. It cannot process multiple threads simultaneously, instead, it switches from thread to thread in a time sliced fashion. This gives the illusion of mutlithreading.
>>
>>To realize the performance gains of multi-threading you need a multiprocessor machine.
>
>Any CPU can handle only one task at a time and must use time slicing to handle multiple tasks. IOW, it's not a VFP limitation, it's a CPU limitation. I have no first-hand experience with multiple processors, but have heard horror stories from those who have.

Not necessarily. You may have a thread which does some disk/floppy/other HW operation, and these may use little processor time, so if it happens in a separate thread, the original thread may keep singing almost undisturbed. It doesn't have to wait for the HW issues to get done, so there's still some gain.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform