摘要 |
A method, system, and computer program product for synchronized thread execution in a multithreaded processor are described. Each synchronized thread refers to at least one object (702, 703, 705) identified by an object identification (OID) that is shared among a plurality of synchronized threads. One of the synchronized threads is selected for execution. Upon entering the selected thread, an entry sequence indicates that the shared object (703) should be locked by pushing its OID onto a lock stack (701). The operations defined by the selected thread are executed and the indication is removed by pushing the OID from the lock stack. <IMAGE> |