Due to the introduction of fast non-dominated sorting algorithms,crowding operators and elitestrategy,the probability of repetition individual increased significantly in every population of NSGA-II algorithm, reducing the Pareto efficiency. It has been improved for this defect,removed the repeating individual and maintained the number of populations unchanged. According to the genetic algorithm crossover and mutation method and differential evolution algorithm DE,the improved NSGA-II and DE are combined to construct a new multiobjective optimization algorithm. The algorithm takes DE as the main optimization method,and uses the basic idea and crossover and mutation method of genetic algorithm. The optimization algorithm was verified by MATLAB. The results show that the optimized algorithm has been improved in both distribution and convergence,and the capacity of search solution has also been improved. At last ,the optimization algorithm is used to complete the hardwaresoftware partitioning of task management part in μC /OS-II.