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 » U++ Library support » U++ MT-multithreading and servers » CoWork question
Re: CoWork question [message #17587 is a reply to message #17459] Thu, 21 August 2008 16:58 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
Infausto wrote on Fri, 15 August 2008 17:10

I'm very noob using UPP but i think this platform is really amazing.
I wrote this post because i have a doubt about CoWork; Its CoWork some kind of IOCP implementation?.
As you can know I/O completion port is an asynchronous mechanism provided directly by the OS kernel to manage I/O request. This technique y very efficient to manipulate thousands of clients in an client-server architecture.
How it works this mechanism is very similar to the work of CoWork (only a few threads to handle many operations), so for this reason i have this doubt.

thx in advance.


Not really. It is basically a loop parallelizer.

If you are performing loop and each iteration is independent (or mostly independent) from other, you can use CoWork to spread the work across all CPU cores.

In fact, in processing intensive code, it is often enought to parallelize a couple of loops where it is possible and you get app using multicore CPU nicely.

Note that CoWork does not solve sharing problem - if you share any data between loop iterations, you have to synchronize access as usual (using Mutex etc...)

Mirek

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: Socket documentation
Next Topic: two threads make error
Goto Forum:
  


Current Time: Mon Aug 25 05:17:53 CEST 2025

Total time taken to generate the page: 0.07719 seconds