Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HowTo: Multithreading/Multitasking
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00329228
Message ID:
00329248
Views:
27
>Does anyone know why the following code does not run multithreading? I have compiled the class below with MultiEXE and MultiUSE. I call it with the following commands, BUT it waits until the first ServerExec completes. I would like it to return and be able to start the second one.
>

It will run multithreaded in that the server will accept and either serialize or interleave execution of multiple requests, but to VFP, method calls are synchronous - the VFP app calling the server blocks until the requested operation completes and returns a result. Another application could request that the server perform some action on it's behalf, but again, the client would wait for completion before continuing the line of execution.

Asynchronous operations are best implemented with VFP using some sort of message passing mechanism such as MSMQ - the VFP app sends a message requesting the server perform some action, and it can then check for a message from the server indicating completion status or containing a result; if the client reaches a point where it can't proceed without confirmation, it waits on the server's reply.
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
Next
Reply
Map
View

Click here to load this message in the networking platform