Is Red5 single or multi-threaded? I noticed that in
http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1732 that the default is
multi-threaded but I'm not sure if that is only for the IO processes or for
other processes as well.
If it's multi-threaded, as a Java newbie I'm wondering if I need to synchronize
the appConnect and other methods if I have something like the following, where
many connections will be accessing the same variables clientCount and
clientsMap:
public class Application extends ApplicationAdapter {
private int clientCount = 0;
private Map<String, List<String>> clientsMap = new HashMap<String,
List<String>>();
public boolean appConnect(IConnection conn, Object[] params) {
clientCount++;
clientsMap.put(clientId, clientInfoList);
}
Any advice appreciated.
Sam
_______________________________________
YM - 離線訊息
就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。
http://messenger.yahoo.com.hk_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org