I recently want to develop a HTTP server frontier to wrap my ipcontroller/ipengine clustering program. The server is a simple derived from BaseHTTPServer. When the server receives a HTTP Get request, its do_GET method will call several mec.execute() method to finish the job. Here is the code sample.
do_GET
{
b = parameter
mec.scatter("a", b)
mec.execute("c=fun(a)")
d = mec.gather("c")
write d
}
Will I face Synchronization problem at the statement mec.execute("c=fun(a)")? From my guessing, a variable "c" will be created at each ipengie with value "fun(a)". If two threads call do_Get method simultaneously with different parameter, what will be the value of "c" at each of ipengine.