3.1 Execution Overview

The CPU and RCP are both processors that can execute at the same time. Threads execute on the CPU and tasks execute on the RCP. Access to main memory from threads and tasks also occur in parallel.

The game program runs on the N64 CPU as a collection of threads,each of which has its own stack. The operating system is a collection of routines that can be called in a thread. The operating system controls which thread is running on the CPU. A thread can access all of physical memory. Please see Chapter 6, "N64 Operating System Overview", for more information.

Tasks run on the RCP, which is a microcode engine that processes a task list. Task lists are generated by a thread running on the N64 CPU and are stored in main memory. The game program creates the task list, calls an OS routine to load the appropriate microcode, and then starts the RCP running to process the task list. The microcode on the RCP reads the task list from main memory. The RCP task can also write into main memory.

UP