void* workerThread(void* args)
{
    MyQueue* mq = (MyQueue*)args;   //get the arguments
    while(true) //keep running
    {
        MyJob* mj = mq->popTop();   //get a job
        if(mj == NULL)  //if it's empty
            break;  //stop running
        mj->sendFileToClient(); //else, send it to client
        delete mj;  //delete the job
    }
    pthread_exit(NULL); //exit
}