I'm writing a very simple browser based MP3 player in PHP. Part of this project requires that every MP3 file is converted to a WAV file. There's a function in PHP called shell_exec
that allows you to execute a command via the shell. For my project, whenever someone uploads a song to their account, the following command would be executed:
shell_exec('ffmpeg -i inputSong.mp3 outputSong.wav')
So let's say there are 10 different people who finish uploading a song at the same exact time. Does the Linux server execute 10 shell commands simultaneously or does it only do one at a time?
If a server can handle multiple shell commands simultaneously, would the server be able to handle converting 10 different songs at the same time or does it only do one at a time?