Thread Pool in VC++.
-
Hi all, i have no idea about thread pool or multi threading,i need to implement in my application. please help me for this. provide me info or any example to implement it. thanks in advance.
What exactly are you trying to do? Threads are created in Windows using the CreateThread[^] API.
«_Superman_»
I love work. It gives me something to do between weekends. -
What exactly are you trying to do? Threads are created in Windows using the CreateThread[^] API.
«_Superman_»
I love work. It gives me something to do between weekends.Hi , i have an list control and there is so much items. list control have list of site links here i want to chk status of all links. but all links have diffrent interval time to chk the link status so thats why not able to chk with single thread or function. please tell me how can i do this for each and every link individually. each link checked after given interval and return status after checking. thanks in advance.
-
Hi , i have an list control and there is so much items. list control have list of site links here i want to chk status of all links. but all links have diffrent interval time to chk the link status so thats why not able to chk with single thread or function. please tell me how can i do this for each and every link individually. each link checked after given interval and return status after checking. thanks in advance.
For starters, I would recommend creating one thread each for every list control item. The link could be passed as a parameter to the thread. Later I would recommend creating a set of threads and engaging only those threads.
«_Superman_»
I love work. It gives me something to do between weekends. -
For starters, I would recommend creating one thread each for every list control item. The link could be passed as a parameter to the thread. Later I would recommend creating a set of threads and engaging only those threads.
«_Superman_»
I love work. It gives me something to do between weekends. -
It will work for large number of items, but it will not be a good design and will have performance problems. But since you're a beginner in multi-threading, I would recommend you do this first and then optimize it.
«_Superman_»
I love work. It gives me something to do between weekends. -
It will work for large number of items, but it will not be a good design and will have performance problems. But since you're a beginner in multi-threading, I would recommend you do this first and then optimize it.
«_Superman_»
I love work. It gives me something to do between weekends. -
ok i'll try this but if its not good for performance,so please tell me the any other optimize and efficient menthod,i also try and start with right way and option.
You could start by looking at the
CreateThreadpool
API which is available from Vista onwards.«_Superman_»
I love work. It gives me something to do between weekends. -
You could start by looking at the
CreateThreadpool
API which is available from Vista onwards.«_Superman_»
I love work. It gives me something to do between weekends. -
Hi all, i have no idea about thread pool or multi threading,i need to implement in my application. please help me for this. provide me info or any example to implement it. thanks in advance.
Microsoft introduced new thread pool APIs. http://msdn.microsoft.com/en-us/library/ms686766%28VS.85%29.aspx[^] Using this you can get a function executed in a thread, without using CreateThread(). There are some good benefits in using the thread pool APIs. Please refer the link.