Click here to Skip to main content
15,887,596 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Fast Image Processing - programming language to use Pin
Luc Pattyn25-Sep-09 2:59
sitebuilderLuc Pattyn25-Sep-09 2:59 
GeneralRe: Fast Image Processing - programming language to use [modified] Pin
CPallini25-Sep-09 9:28
mveCPallini25-Sep-09 9:28 
AnswerRe: Fast Image Processing - programming language to use Pin
Chris Losinger24-Oct-09 10:50
professionalChris Losinger24-Oct-09 10:50 
AnswerRe: Fast Image Processing - programming language to use Pin
novice__geek30-Oct-09 0:13
novice__geek30-Oct-09 0:13 
GeneralPagerank and its mathematics: Explanation needed Pin
kentipsy20-Sep-09 8:24
kentipsy20-Sep-09 8:24 
GeneralRe: Pagerank and its mathematics: Explanation needed Pin
Richard MacCutchan20-Sep-09 9:41
mveRichard MacCutchan20-Sep-09 9:41 
QuestionHow to manage a share buf array? Pin
donniehan18-Sep-09 0:04
donniehan18-Sep-09 0:04 
AnswerRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 2:32
sitebuilderLuc Pattyn18-Sep-09 2:32 
Hi,

if you have multiple producers and a single consumer, then the following seem logical:

1.
the normal way of communication would be through a single queue; all producers can enqueue messages, the consumer will dequeue the messages. Other means of communication could be used if there is a need for them, e.g. when message priorities have to be established.

2.
the queue (or other comm means) should be locked as short as possible; it is only while dequeueing that the consumer needs to lock the queue, the processing of a dequeued messages should happen with the queue unlocked (otherwise the queue would locked all the time).

3.
on average the consumer should be faster than each of the consumers, as it has to handle all the messages, whereas each producer only needs to handle its share of them. This can be implemented by giving the consumer a higher thread priority (tricky on Windows), or by limiting the size of the queue (or other comm means), so when the queue gets full, the producers get blocked.

Smile | :)

Luc Pattyn

Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

Local announcement (Antwerp region): Lange Wapper? Neen!


GeneralRe: How to manage a share buf array? Pin
donniehan18-Sep-09 4:06
donniehan18-Sep-09 4:06 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 4:15
sitebuilderLuc Pattyn18-Sep-09 4:15 
GeneralRe: How to manage a share buf array? Pin
donniehan18-Sep-09 13:43
donniehan18-Sep-09 13:43 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn18-Sep-09 14:48
sitebuilderLuc Pattyn18-Sep-09 14:48 
GeneralRe: How to manage a share buf array? Pin
donniehan20-Sep-09 18:03
donniehan20-Sep-09 18:03 
GeneralRe: How to manage a share buf array? [modified] Pin
Luc Pattyn21-Sep-09 1:17
sitebuilderLuc Pattyn21-Sep-09 1:17 
GeneralRe: How to manage a share buf array? Pin
donniehan21-Sep-09 2:00
donniehan21-Sep-09 2:00 
GeneralRe: How to manage a share buf array? Pin
Luc Pattyn21-Sep-09 2:07
sitebuilderLuc Pattyn21-Sep-09 2:07 
QuestionHough Circular transform Pin
lcssiva16-Sep-09 1:38
lcssiva16-Sep-09 1:38 
AnswerRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 3:27
Alan Balkany16-Sep-09 3:27 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 4:08
sitebuilderLuc Pattyn16-Sep-09 4:08 
GeneralRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 4:24
Alan Balkany16-Sep-09 4:24 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 4:39
sitebuilderLuc Pattyn16-Sep-09 4:39 
GeneralRe: Hough Circular transform Pin
Fatbuddha 116-Sep-09 5:02
Fatbuddha 116-Sep-09 5:02 
GeneralRe: Hough Circular transform Pin
Alan Balkany16-Sep-09 5:17
Alan Balkany16-Sep-09 5:17 
GeneralRe: Hough Circular transform Pin
Luc Pattyn16-Sep-09 5:33
sitebuilderLuc Pattyn16-Sep-09 5:33 
GeneralRe: Hough Circular transform [modified] Pin
Member 419459316-Sep-09 5:12
Member 419459316-Sep-09 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.