1. A method for executing a transaction in a data processing system, the data processing system comprising a memory and a transactional memory system coupled to the memory, the method comprising: initiating the transaction by the transactional memory system, wherein the transaction comprises instructions for comparing a plurality of parameters; and aborting the transaction by the transactional memory system based on comparison of the plurality of parameters.