Hi,
I'm a newbie to this PD thing so excuse me if I'm asking a dumb question:
Does PD have any kind of thread support? I'm thinking of using it as a server that accepts requests over the network, does some processing stuff and sends the result back to the client. Now I want to be able to do this for many concurrent requests...
I guess that something like this would be hard to do without threads.
Any comments?
Thanks, jc
Jorge C.S. Cardoso <-> jorgecardoso@ieee.org
Centro de Investigação em Ciência e Tecnologia das Artes (CITAR) Univ. Católica - CRP -> Escola das Artes -> Dept. Som e Imagem Rua Diogo Botelho 1327 4169 - 005 Porto Portugal
Hi Jorge, PD is almost anti-threaded.... nevertheless, from version 0.37 on, there's a global thread lock which can be set be sys_lock() and unset by sys_unlock() for a _short_ time. It should be used with every api function changing PD's state (like outlet and clock functions, gensym etc.) or interfering with other externals (like post) called from a second thread. atom functions or the likes need not use the thread lock. There have been reports describing deadlocks... i'm not sure what causes them, but in case you are experimenting with PD and threads, feedback of any kind is more than welcome.
best greetings, Thomas
----- Original Message ----- From: "Jorge Cardoso" jccardoso@porto.ucp.pt To: pd-list@iem.at Sent: Tuesday, November 25, 2003 6:06 PM Subject: [PD] Thread support
Hi,
I'm a newbie to this PD thing so excuse me if I'm asking a dumb question:
Does PD have any kind of thread support? I'm thinking of using it as a server that accepts requests over the network, does some processing stuff and sends the result back to the client. Now I want to be able to do this for many concurrent requests...
I guess that something like this would be hard to do without threads.
Any comments?
Thanks, jc
Jorge C.S. Cardoso <-> jorgecardoso@ieee.org
Centro de Investigação em Ciência e Tecnologia das Artes (CITAR) Univ. Católica - CRP -> Escola das Artes -> Dept. Som e Imagem Rua Diogo Botelho 1327 4169 - 005 Porto Portugal
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list