1. A non-transitory computer-readable medium storing instructions, the instructions comprising: one or more instructions that, when executed by one or more processors, cause the one or more processors to: obtain scripting language code that references a collection of code for executing a first task and a second task, a first portion of the collection of code being associated with a first annotation, of a plurality of annotations, associated with the first task, and a second portion of the collection of code being associated with a second annotation, of the plurality of annotations, associated with the second task, select, for each of the first task and the second task, one of a plurality of threads based on the plurality of annotations, the first annotation specifying a first type of thread to which the first portion of the collection of code should be dispatched, and the second annotation specifying a second type of thread to which the second portion of the collection of code should be dispatched; dispatch, based on the first annotation specifying the first type of thread, the first task to a first thread, of the plurality of threads, for executing the first task in a scripting language environment; dispatch, based on the second annotation specifying the second type of thread, the second task to a second thread, of the plurality of threads, included in a non-scripting language environment, the first task or the second task not being dispatched to one or more threads, of the plurality of threads, based on a third annotation, of the plurality of annotations, the third annotation specifying an identity of the one or more threads and indicating that the first task or the second task should not be dispatched to the identified one or more threads; and cause an execution of the scripting language code, during the execution of the scripting language code, the first task being executed via the first thread in the scripting language environment and the second task being executed via the second thread in the non-scripting language environment.
1. A non-transitory computer-readable medium storing instructions, the instructions comprising: one or more instructions that, when executed by one or more processors, cause the one or more processors to: obtain scripting language code that references a collection of code for executing a first task and a second task, a first portion of the collection of code being associated with a first annotation, of a plurality of annotations, associated with the first task, and a second portion of the collection of code being associated with a second annotation, of the plurality of annotations, associated with the second task, select, for each of the first task and the second task, one of a plurality of threads based on the plurality of annotations, the first annotation specifying a first type of thread to which the first portion of the collection of code should be dispatched, and the second annotation specifying a second type of thread to which the second portion of the collection of code should be dispatched; dispatch, based on the first annotation specifying the first type of thread, the first task to a first thread, of the plurality of threads, for executing the first task in a scripting language environment; dispatch, based on the second annotation specifying the second type of thread, the second task to a second thread, of the plurality of threads, included in a non-scripting language environment, the first task or the second task not being dispatched to one or more threads, of the plurality of threads, based on a third annotation, of the plurality of annotations, the third annotation specifying an identity of the one or more threads and indicating that the first task or the second task should not be dispatched to the identified one or more threads; and cause an execution of the scripting language code, during the execution of the scripting language code, the first task being executed via the first thread in the scripting language environment and the second task being executed via the second thread in the non-scripting language environment. 7. The non-transitory computer-readable medium of claim 1 , where the first annotation identifies a first priority of the first task and the second annotation identifies a second priority of the second task, the instructions further comprising: one or more instructions that, when executed by the one or more processors cause the one or more processors to determine an order associated with dispatching the first task to the first thread and the second task to the second thread based on the first priority of the first task and the second priority of the second task; where the one or more instructions to dispatch the first task include: one or more instructions that, when executed by the one or more processors, cause the one or more processors to dispatch the first task to the first thread prior to dispatching the second task to the second thread based on the order.