PC Review


Reply
Thread Tools Rate Thread

How to create multiple instances of a worker object on a worker th

 
 
=?Utf-8?B?RXJpayBKZW5zZW4=?=
Guest
Posts: n/a
 
      1st Nov 2005
This relates to an article on MSDN for the RTC api.
http://msdn.microsoft.com/library/de...use_rtcapi.asp

under 'Threading Issues'

We must create instances of the RTC client to do the messeging. However, in
scalable applications it suggests only creating 10-15 instances of the Client
object on each thread before taking a new thread and adding it to your thread
pool.

Many of the threading examples show me creating a new
ThreadStart(workerObject.WorkerMethod) then adding that ThreadStart delegate
to a new thread and finally calling .Start() on the thread. But doesnt this
creat a 1:1 relationship between threads and worker objects?

Do do what I write about in the first paragraph do I have to write a custom
object that holds bunches of RTC client objects and then add each one of
those 'bundle' objects to the new threads?

Sorry I am new to multi-threading.

Thanks
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reuse a threadpool worker object (not the thread) Kevin Microsoft C# .NET 1 24th Apr 2007 08:55 PM
reuse threadpool item/object (not the thread, but the worker object) Kevin Microsoft C# .NET 3 24th Apr 2007 07:18 PM
Worker process and Cache object's lifetime =?Utf-8?B?RGlmZmlkZW50?= Microsoft ASP .NET 1 2nd Feb 2006 08:50 PM
I can map all files (.*) to asp.net worker.How do I map NO FILE to asp.net worker? alex Microsoft ASP .NET 1 4th Feb 2005 03:18 AM
iis 6.0 worker processes & cache object Param R. Microsoft ASP .NET 7 6th Dec 2004 04:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 AM.