1. A method for sharing a memory between a first processor and a second processor, comprising: transmitting a token from a first processor to a second processor; accessing the memory by the second processor if the token is received, the memory being accessible by one of the first processor and the second processor at a time; after accessing the memory, transmitting the token from the second processor to the first processor; and accessing the memory by the first processor if the token is received.