如果觉得每次都手工设置进程优先级太麻烦得话,可以用以下一段小程序就能让程序自动设置优先级。
SUBROUTINE UEDINC(INC,INCSUB)
IMPLICIT REAL *8 (A-H, O-Z)
call Thread()
RETURN
END
subroutine Thread()
Use kernel32
INTEGER(4) CurrentProcess
! THREAD_PRIORITY_ABOVE_NORMAL
! THREAD_PRIORITY_BELOW_NORMAL
! THREAD_PRIORITY_HIGHEST
! THREAD_PRIORITY_IDLE
! THREAD_PRIORITY_LOWEST
! THREAD_PRIORITY_NORMAL
! THREAD_PRIORITY_TIME_CRITICAL
CurrentProcess=GetCurrentThread()
I=SetThreadPriority(CurrentProcess, THREAD_PRIORITY_HIGHEST)
return
end