Thanks to the need of the development of networks and information ,high-performance machines choose to use parallel processing technology.At present, the fields have accumulated a large number of serial programs, and 7 L" U) i9 E$ D% U9 t* [the demand for computing power is getting higher and higher,How to change serial program # b% n5 J( r8 G q4 @( dto parallel processing to meet the users' needs is especially important.many desktops and laptops use# H% r# v1 \8 e3 \0 F2 h; n# ^
dual-core and multi-core CPU widely, this paper,we establish the model of changing serial program8 h5 {2 t/ c( s" b7 ?2 P
to parallel program ,and enable the program to run on two CPU cores in parallel computing in order to improve the efficiency of the overall count.On this issue, this paper establish two mathematical models ,serial program division model and load balancing model 3 r& r7 L' o3 D
+ B: g, v5 }) N; n3 E0 Cmodel 1 :serial program division model, that is, to solve how to change the serial program to parallel program.Firstly, through the analysis of whether there is correlation , $ K9 Q8 ?4 t0 J, hwe establish # a! b% n7 @7 I! Midealized model of serial program division.divied program which is completely non-existent between the correlation can be assigned to run two different CPU independently : o/ B. c3 \4 a) A' e8 b ! S2 h Y4 W* ? j% G
In fact ,most of divied programs of serial programs. Y: ^, q2 _: L
have relationship among them ,Rare of them can be divied into subprograms which have no relationship .If we try to reduce the relationship, we can also raise the Nuclear CPU efficiency of parallel execution.So,we choose a kind of algorithm named RPDMA which can reduce the relationship,then a general model is established to change the serial program into parallel program4 G* m8 b I9 o, \9 z- M6 Z
" `+ }" ^& D q+ ~3 s# u+ Y6 Q( Y- u! Pmodel 2:we establish the load balancing model which can range the different parallel program to different CPUs, To achieve the most efficient load balancing goal.we use a C programming to simulation the computing process of computer inorder to reach the high efficiency of load balancing.