1. A computer-implemented method, comprising: obtaining a set of computer instructions that include an Extended Memory Semantics (EMS) operation; converting the EMS operation into a corresponding software function including an atomic memory operation (AMO); and executing the function on at least one processor of a computer, wherein execution of the function causes the AMO to perform a memory access requested by the EMS operation, wherein the AMO is one of a Compare-and-Swap operation, a Contrast-and-Swap operation and a Test-and-Set operation, wherein the AMO performs the requested memory access while the function locks a corresponding memory resource based on a software parameter that emulates an EMS full or empty bit after being set to a designated value, and wherein the designated value represents an empty memory state.