[Red5] are there any synchronization (threading) issues withred5 ?

Valentin Plamadeala vnexster at gmail.com
Tue Nov 24 09:45:46 PST 2009


i'm not using tomcat, i'm windows and red5 runs as a service :)

On Tue, Nov 24, 2009 at 7:36 PM, Andy Shaules <bowljoman at hotmail.com> wrote:

>  Actually , I think tomcat will do most of it, but you should use
> synchronized methods in crittical sections.
>
>
> ----- Original Message -----
> *From:* Valentin Plamadeala <vnexster at gmail.com>
> *To:* red5 at osflash.org
> *Sent:* Tuesday, November 24, 2009 9:32 AM
> *Subject:* Re: [Red5] are there any synchronization (threading) issues
> withred5 ?
>
> so i need to consider this synchronization issues, or red5 is doing that
> for me, is it ?
>
> On Tue, Nov 24, 2009 at 7:25 PM, Samuel Contesse <
> samuel.contesse at softcomponent.ch> wrote:
>
>>  Hello,
>>
>>
>>
>> In this case you might use a synchronized collection as described in
>> Javadoc :
>>
>>
>>
>>
>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Collections.html#synchronizedCollection%28java.util.Collection%29
>>
>>
>>
>> This method will return a thread safe collection.
>>
>>
>>
>> Sam
>>
>>
>>  ------------------------------
>>
>> *From:* red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] *On
>> Behalf Of *Valentin Plamadeala
>> *Sent:* Tuesday, November 24, 2009 4:53 PM
>> *To:* red5 at osflash.org
>> *Subject:* [Red5] are there any synchronization (threading) issues with
>> red5 ?
>>
>>
>>
>> i have something like this:
>>
>> public class Manager
>> {
>> public static Vector<Client>;
>> static
>>     {
>>         clients = new Vector<Client>();
>>     }
>>
>> public static void AddClient(Client client)
>> {
>>    clients.Add(client);
>> }
>>
>> }
>>
>> and i call the *Manager.AddClient in the appConnect Method *
>> am i going to have any problems with multiple threads or something (if
>> multiple users connect at the same time) ?
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>  ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20091124/8d762e09/attachment-0001.html>


More information about the Red5 mailing list