Compare thread ID for function calls and arguments

The function calls and arguments should be dealed for each thread.