age tkurs gSa fd Windows is Operating System Several Programs dks Simultaneousy Execute djrk gSa bls MultiTasking dgk
tkrk gSaA ij tc System Point of View ls ns[kk tk, rks Programs Hkh One by
one Instructions dks
Follow djrs gq, Execute gksrs
gSa bl Concept dks Multi Treading dgk tkrk gSaa Multi
Treading ,d
dkYifud Programming Concept gSa tgka Programs (Process) dks Sub
Parts esa (Sub Process) esa divide fd;k tkrk gSaA rFkk lHkh Process Parallel implement gksrs gSaA
Example:
-,d Sub Programs Screen ij Animation
iznf’kZr djrk
gSa rks nwljk rc rd nwljs Animation dks Display djus dh rS;kjh djrk gSa vr% ;g dgk tk ldrk gSa fd
,d dk;Z dks cgqr ls NksVs&NksVs dk;ksZ esa foHkkftr fd;k x;k gSaA rFkk gj
NksVk dk;Z ,d vyx User ds }kjk Independently o Simultaneously
perform fd;k
tkrk gSaA
Java
Programs Single rFkk
Sequential Flow Control ij dk;Z djrs gSaA blesa Programs dks Sequentially
Execute fd;k
tkrk gSaA
Thread,
Hkh izksxzke
tSls gh Single Flow Control ij dk;Z djrs gSaA Threads dh Beginning,
Body rFkk ending gksrh gSaA Thread
Body dks Sequentially Execute fd;k tkrk gSaA fdlh Hkh izksxzke esa de ls
de ,d Thread gksrh gh gSa fiNys lHkh Programs esa Single
Threaded Programs dks
mi;ksx esa fy;k tkrk gSaA
Java
dh ,d Property Multithreded dks Support
djrk gSaA
ftlesa izksxzke dk Multiple Flow Control
Use fy;k tkrk
gSaA gj izksxzke dks fofHkUu NksVs&NksVs Programs esa
foHkkftr dj fn;k gSaA ftUgsa Modules dgrs gSa rFkk izR;sd Module dh ,d Threads
Consider fd;k
tkrk gSaA og izksxzke tks Multiple Flow dks Support djrk gSaA Multi
Threaded Program dgykrk
gSaA
og Hkk"kk tks Multi Treaded dks
Support djrk gSa mls Concurrency dgrs
gSaA vr% Java esa Threads, Main Application Programs dk Part gksrh gSa rFkk tks Same
Memory Space Share djrs
gSA mUgsa Light Wait Treads ;k Light Wait Process dgk tkrk gSaA Threads
dks Parallel Run fd;k tkrk gSa ijUrq bldk vFkZ ;g ugha gSa fd bUgsa
Same Time ij ju fd;k tkrk gSaA D;ksafd lHkh Thread Single Processers esa ju gksrs gSaA
vr% Threads dk Execution Flow Shared gksrk gSaA Java dk
Interpreter, threads ds chp esa Switch Controlling dk dk;Z djrk gSaA ftlls Threads Concurrent Run gksrs gSaA Multi Threading Concept ds dkj.k gh Java
dks nwljh
Hkk"kk ls vyx ekuk x;k gSaA Multi
Threading, User dks
,d le; esa cgqr ls dk;Z djus dh vuqefr nsrk gSaA Programs dks
NksVs&NksVs Threads esa Divide dj fn;k tkrk gSaA rFkk Processor }kjk Parallel
Execute fd;k
tkrk gSaA Threads dks eq[;r% Java Web Browser (Hot Java) ds fy, iz;ksx esa fy;k
tkrk gSaA
No comments:
Post a Comment