sjs7007 / S3Lab

Code for Deep Cloud back end.
http://deepc05.acis.ufl.edu:8080/
0 stars 0 forks source link

Deal with the possibilities of same pids on different machines. #6

Open sjs7007 opened 8 years ago

sjs7007 commented 8 years ago

Maybe hashset to hasmap change and increment / decrement occurances.

If present > 0, else ==0. But still this leaves possibility of killing task on wrong machine with same pid.

sjs7007 commented 8 years ago

hashmap : job_id -> pid

if job_id present, use corresponding pid else invalid.

For different machines maybe map of job_id -> (pid,machine) ?