global variable won't update in multiprocessor.
global variable won't update in multiprocessor.