Skip to main content
Participant
March 11, 2013
Question

Is Flash Media Server is Thread Safe?

  • March 11, 2013
  • 1 reply
  • 539 views

Hello,

I am trying to develop a game in flex, using flash media server 4.5. As its a multiplayer game, the server side code, should be multi threaded.

Please let me know, is the "Flash Media Server 4.5" has Thread Safety mechanism. Please provide me any link( or guide me) to have detail decription regarding this.

Thanks in advance.

This topic has been closed for replies.

1 reply

March 14, 2013

Hi,

I am not sure if this exactly will help you but you can use SharedObject class to store data shared by different clients. With this you can also achieve synchronization. Below link has the details about SharedObject class:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/SharedObject.html

Also, following link has an example which shows how to synchronize users and store data using SharedObject:

http://help.adobe.com/en_US/FlashMediaServer/3.5_Deving/WS5b3ccc516d4fbf351e63e3d11a0773d37a-7fff.html

Participant
March 14, 2013

Hello Chandan_Abhishek,

Yes, I am using the shared objects to synchronize the data between clients in a specific room in a game, but do the fms can have concurrent request to update the same shared object from different rooms.

PS: Please let me can I use lock() and unlock() mechanism for my problem.

Thanks,

March 14, 2013

Yes, fms can have concurrent request to update the same shared object.

Also, you can use lock () and unlock() methods of SharedObject but these methods are only in server side language reference. Following is the link for the same:

http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7e63SSASLR.2.3.html