'Put a task into task queue'

def put(self, taskid, priority=0, exetime=0):

    now = time.time()
    task = InQueueTask(taskid, priority, exetime)
    self.mutex.acquire()
    if (taskid in self.priority_queue):
        self.priority_queue.put(task)
    elif (taskid in self.time_queue):
        self.time_queue.put(task)
    elif ((taskid in self.processing) and self.processing[taskid].taskid):
        pass
    elif (exetime and (exetime > now)):
        self.time_queue.put(task)
    else:
        self.priority_queue.put(task)
    self.mutex.release()
