1. A defect inspection method comprising of: illuminating laser light to a sample; detecting scattered light from the sample; acquiring an image based on the scattered light; dividing the image into a plurality of areas; setting an inspection mode corresponding to the plurality of areas; assigning a number of CPUs based on a ratio of product computed by multiplying an arithmetic load of each area by an arithmetic area of each area; and processing assigned CPUs and extracting defects.