int key is the priority of the thread.
void *data is the pointer to the string of data to be associated with the value of key.