A method for coordinated scheduling between real-time processes, the method being performed by a central scheduler (20\), the method comprising the steps of: acquiring information on runtimes and deadlines for real-time processes of tasks for local schedulers (205, 223) of different virtual machines, to be executed on shared computing resources; wherein each one of the deadlines relates to at least one of a compute deadline and a network deadline for its respective task; wherein the compute deadline is a deadline assigned to the task to be complete by the local scheduler and the network deadline is a deadline for when packets need to be sent to and/or received from a remote scheduler; and scheduling the real-time processes of tasks for the local schedulers (205, 223) of the different virtual machines, based on time for switching between different ones of the real-time processes being executed in the shared computing resources using a static or calculated value from previous switching times; the method further comprising the steps of: acquiring a need from a local scheduler (205, 223) of a virtual machine, VM, of the different virtual machines, responsible for performing one of said tasks, said one task requiring the packets of the remote scheduler to be scheduled; sorting (S106a) scheduling of all tasks according to their respective deadlines, selecting (S106b) one of said real-time processes of tasks for the local schedulers (205, 223) of the VM with earliest deadline to be executed first by the shared computing resources, and sending (S106c) information relating to said deadlines to the remote scheduler using hyper calls from the VM or shared memory regions between a virtual machine manager, VMM, and the VM. acquiring information on runtimes and deadlines for real-time processes of tasks for local schedulers (205, 223) of different virtual machines, to be executed on shared computing resources; wherein each one of the deadlines relates to at least one of a compute deadline and a network deadline for its respective task; wherein the compute deadline is a deadline assigned to the task to be complete by the local scheduler and the network deadline is a deadline for when packets need to be sent to and/or received from a remote scheduler; and scheduling the real-time processes of tasks for the local schedulers (205, 223) of the different virtual machines, based on time for switching between different ones of the real-time processes being executed in the shared computing resources using a static or calculated value from previous switching times; the method further comprising the steps of: acquiring a need from a local scheduler (205, 223) of a virtual machine, VM, of the different virtual machines, responsible for performing one of said tasks, said one task requiring the packets of the remote scheduler to be scheduled; sorting (S106a) scheduling of all tasks according to their respective deadlines, selecting (S106b) one of said real-time processes of tasks for the local schedulers (205, 223) of the VM with earliest deadline to be executed first by the shared computing resources, and sending (S106c) information relating to said deadlines to the remote scheduler using hyper calls from the VM or shared memory regions between a virtual machine manager, VMM, and the VM. acquiring a need from a local scheduler (205, 223) of a virtual machine, VM, of the different virtual machines, responsible for performing one of said tasks, said one task requiring the packets of the remote scheduler to be scheduled; sorting (S106a) scheduling of all tasks according to their respective deadlines, selecting (S106b) one of said real-time processes of tasks for the local schedulers (205, 223) of the VM with earliest deadline to be executed first by the shared computing resources, and sending (S106c) information relating to said deadlines to the remote scheduler using hyper calls from the VM or shared memory regions between a virtual machine manager, VMM, and the VM.