Do we use threads for this?
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Friday, October 11, 2002 06:28 AM

i need to retrieve values from a database every minute. do we have to use threads for this?

Re: Do we use threads for this?

Posted By:   Kian_Parsee  
Posted On:   Wednesday, October 16, 2002 11:21 AM

You're not giving enough information for a good answer.




If you're expecting alot of database updates, and therefore, a processor-intensive program that may be running on a multi-processor machine, you're probably better off writing a multi-threaded program. That way your program can take advantage of the other processors on the machine.

Re: Do we use threads for this?

Posted By:   Lasse_Koskela  
Posted On:   Friday, October 11, 2002 07:21 AM

Not necessarily "threads" as in "multiple threads", but a single thread is a must.
About | Sitemap | Contact