Synchronization problem in AS3

Hi everybody.
I have one problem with synchronization of write functions…
The problem:
There exist socket A.
There are many event handlers in my program which can directly write bytearrays to socket A. So the problem is how can I do the synchronization or are sockets thread safe ?
If 2 functions(handlers) will start to write into the same socket what will happen ?
This is a very important problem if you are Flex/Flash programmer/developer.
Thanks ever so.