Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Ide MT
Re: Ide MT [message #31239 is a reply to message #31237] Wed, 16 February 2011 12:50 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14266
Registered: November 2005
Ultimate Member
raxvan wrote on Wed, 16 February 2011 06:30

mirek wrote on Wed, 16 February 2011 11:11


Problem is, with MT and CoWork, there is absolutely no guarantee that it will run in separate thread...

If you really feel like you absolutely need to run something in separate thread, then create Thread and start it Smile



Ow , i had no idea about that. Perhaps CoWork should always run tasks in a separate thread. Initially i was going to use a Thread but i found out that CoWork was much easier to use.



The idea there is CoWork is 'optimized optimization' to fully exploit all cores.

E.g. it only starts limited number of worker threads per application and those never finish (until app exit). Then assigns pieces of work to them as needed.

If you would use CoWork just to run a thread in parallel on more places in the app, it can easilly happen that there will be no threads available.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: BackgroundTask
Next Topic: Linux anti-aliasing fonts problem
Goto Forum:
  


Current Time: Sun Jul 20 10:22:30 CEST 2025

Total time taken to generate the page: 0.03557 seconds