Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why would you ever use a single-threaded DLL
Message
From
13/12/1999 00:55:23
 
 
To
12/12/1999 21:19:43
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00302421
Message ID:
00302592
Views:
28
>>If you'd point me to a resource to answering this question, I'd appreciate it.
>
>Do you need a multi-threaded dll in ALL the cases, for any possible case?
>
>A multi-threaded program (COM dll or whatever) must deal with synchronization (between threads) problems. A single threaded program is much simpler, so, it may be faster and smaller. And don't forget, the simpler something is, the less chances for bugs! :)
>

Arguments in favor of single-threading:

- maximum performance. An MTDLL has task switching overhead to allow multiple things to happen interleaved.

- minimizes effect of stateful operation

- enforces serialization on a FIFO basis

- can be delivered without upgrading to VFP6 SP3
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform