Dtynin
Dtynin
DIIDevHeads IoT Integration Server
Created by Dtynin on 6/14/2024 in #middleware-and-os
Are there alternatives to system() that might be more performant for CGI scripts on embedded Linux?
I'm facing a performance issue with the system() call in C on my embedded Linux system. The command I'm running which is a network ping or a file system operation executes quickly when I run it directly on the command line. However, when I call the same command from within a compiled CGI script using system(), it becomes significantly slower from milliseconds to seconds. What are some potential reasons why system() might be slower than running the command directly? Are there any alternatives to system() that might be more performant for CGI scripts on embedded Linux? @Middleware & OS
4 replies