Csound Csound-dev Csound-tekno Search About

[Cs-dev] Multi-threading

Date2008-06-14 20:10
FromMichael Gogins
Subject[Cs-dev] Multi-threading
I've made some changes to csound.c to enable Steven Yi's multi-threading code to run on Windows with our changes to using pthreads internally on all platforms. I've booked these minor changes in. And the code does run.

Unfortunately, there is no significant difference in performance between running with 1 thread and running with 2 threads, so I wonder if this code is actually logically correct. Csound is behaving exactly as if both threads are being scheduled on the same processor (I definitely have 2 processors), so in effect there is only 1 thread with some additional pretend-there-are-threads overhead if the computational load is light.

I've looked at the code and I don't see any problems, but perhaps Steven could could take another look at the logic, run Linux thead statistics commonds on Csound while it is running something heavy, and so on.

In addition, we will need to protect spout and spin to keep from reading or writing junk due to thread contention.

Regards,
Mike







-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-06-15 09:37
From"Steven Yi"
SubjectRe: [Cs-dev] Multi-threading
AttachmentsNone  

Date2008-06-15 18:32
FromFelipe Sateler
SubjectRe: [Cs-dev] Multi-threading
AttachmentsNone  None  None  

Date2008-06-21 06:13
From"Steven Yi"
SubjectRe: [Cs-dev] Multi-threading
AttachmentsNone