lags when calling system and/or systemqq under win 11

We are developing a suite of instrument control programs using Intel Fortran and Intel C.

We find that under win 11 (and not 10) all calls to the fortran library functions system and systemqq result in a 2-4 second lag when these functions are called and a transient console window opens and then closes. If the program is running with administrative privilege this does not occur.

Any idea what’s going on here?

thanks

M

1 Like

system and systemqq are extensions, so the Intel forum would probably be a more appropriate place to ask about them. Does the same happen with a call to EXECUTE_COMMAND_LINE?

How you are starting your program and what shell it is spawning can be a factor.

I’ve done some testing with a program that calls system using ifx on both Windows 10 and Windows 11. I don’t get the delay that you have. The average system call time (calling system 37 times) on Windows 10 is 0.154514 and is 0.188973 under Windows 11. I am running Windows 11 enterprise (a free download from Microsoft with a 90 day licence) under hyper-v. The system call is to curl to get a file from the UK Met Office server.

urbanjost / cmaapic

I switched from using the system and systemqq calls (originating from intel compatibility libraries) to the fortran intrinsic CALL_COMMAND_LINE and the delays i was seeing disappeared.

Thanks for the suggestion!