|
-
November 3rd, 1999, 08:32 AM
#1
Help Server Creating Clients - Multi Threading
Hi,
I have a server (Activex Exe) which will create 4 clients (Activex DLLs). The server should give onbe record each for the clients to process. Once the client is finished processing, the free bit is set.
My problem is that, once I start the process of one client, the server is waiting until the process of that client is completed. I wish to just instantiate each client and call the Process function and leave it on its own and once the Server finishes allocating records to all free clients, it will come back to check if the client is free and then allocate to it the next record.
As of now, I am not able to do the parallel operations on clients simultaneously.
Please send me any tips if some one has the answer.
Thanking you in advance
Arjun
Software Engineer
Bangalore
-
November 3rd, 1999, 10:04 AM
#2
Re: Help Server Creating Clients - Multi Threading
I'm just learning this stuff myself but I think your problem lies in apartment threading. I believe when you create the DLLs through the ActiveXEXE they all get lumped on the same thread in the same apartment thereby creating the problem. I don't really know what solution there is but I have a hunch you might have to use MTS. I would really like to hear how to handle this too. Anyone??
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|