...
When submitting a job in batch one needs to specify the resources it needs, like number of cores (MPI and OpenMP), runtime, memory, etc.
According to these specifications the scheduler will organize submitted jobs and determine the priority after which different jobs of different users will get executed. While at UQAM we do not have many submitted jobs so they usually start running immediately, jobs can be queued for quite a while on clusters of The Alliance.
Submit a job
Only Shell scripts can get submitted to the scheduler! If you want to submit anything else you have to write a little Shell script that would execute your script/program the same way you usually run it interactively. In this script you would have to load needed modules etc., maybe change into a certain directory (the submitted job does not know from which directory it got submitted) and execute the script/program you want to run.
...