1. A computer-readable recording medium having stored therein a task assignment program for causing a computer to execute a process, the process comprising: calculating memory access rates for respective tasks on basis of hardware monitor information obtained by monitoring operating states of hardware during execution of an application program, the tasks corresponding to respective syntax units specified in the application program; and assigning, on basis of the calculated memory access rates, a first task to a socket in a processor in response to an instruction for executing the first task.