You are on page 1of 6

pfn leuon

Dundigal, Hyderabod 500 043


ARE
INSTITUTE OF
Ph:8886234501, 8886234502
iare.ac.in
AERONAUTICAL ENGINEERING

LABORATORY WORK SHEET


Date:.**
* **************************************************

RollNo:.9SIAI264Name:.B.4ai thand.
N o . 9 . Experiment N a m e : . . M U L T A T H B E A D I N . ( . D A . . s i n g

DAY TO DAY EVALUATION:


Program Evecution
Source Code
Algorithm Viva Jotal
Results and Error
Preparatien Performance in the Lab
Calculations and

Graphs Analysis
20
Max. Marks 4

Obtained uln
Signature of Lab /C

START WRITING FROM HERE:

a) wie a python paograam to Ceaktuoo threads


Kap a count Of number OF. eve numbex

entere d by the Use

b)we a java Poram that creau +hreads by


extending thrad clas, i s t thread display
'(ncod moyning "evesy1.sec,
. fs plays HeUo every the setond hCad
"

tird os ela
2Setona and
welsme" very 3,
e) w8k
second.
a est ase to cheuk *he
numb e Whith
funHon. even
ehn Tue
o au wen
numb enA
PaMing a lish
d)
wkaahase to check he
fmH on
evers shing hfuh
rehn the
evemed sting
a) Alqoithm
a) start
) creae a tuple wwih a colletHon 0f numne

) InHali ze cou odd 0, count e venso, t

texaLe he tuple osf ng a fov too


Pnd For each 'nvmbey thuk ff °t s even ov

Odld Usfng ffeluee.


)T he pint dhe tound-even arnd Count-odd
7) end

60UYCe code
nUmbes= E 23,u5)b,7, 3,)
COutod d -o.
Coont-even=0
fox fn numobers
R , 2 o
Coont even t =
else

pr "numbey oF even umbyA LDUn,even)


P nombeN OF Ddd numbes oontodd)
OUtPU
NUmber Of even numbeK u
Umber of o nmb eM :S

b).tgothm
Stat
) CNeale a
syeh ronI 2ed Memod w h a hy boe

3) tde the y blou nfRal 2e zo, by


Using a wkile loo Pnt Good monfrg
6 reate a hetlo clax e
ends thxead
sy nthn1 2 ed o h dry bloc &
bysinq ca wh?le toop
inRPlfse )o
6) CYeale
molti &hiead Demo
main Se
aun
cRon
cax, and Po
fo the
he
Hello, weluomecreaje ob)ecy
objech o(00d
for (n00d morna.
end Clas E ven the mor na
Clan
sych
bOOste code. oni2ed
etay (nood
sy
moing xends threadi
Othron 3ed 5.
poblfc vor d Unt
int i 0
ohfle C345)A
sleep (1090)
yem 00 pn tn
ood
moxnina")
uch y tepHon
e)6.
Clay tello etends
synchaont Sed pblithready
vdid
A
un( )A

oh?ec5 )
slee p (20D0)
sem.o u . n tn
("ueuo");
elas mol5hread
clan Demo 6.
Pob Stehc vofd Moin / shf ng args T73
Pfnt/even. num bey (»))

Uoto neu tctlo( ) ;


Aelcome t ÓCo weltoe t):
CkavtC);
4 .sBrut (;
3taut C)
Output nood moning
helo.
(nood moming
weluonme
Cnood oRnNg
Chood om
c)agosthm.
Dstat
2)1mPo Unítest
S) CxEae ahnCAS On even-mb tr whith taULI a (7ia
)in he fnth on vjf nq fkNak hvgho du looe.
) 1 he number is even mcvement
6) e revn Tve.
(ount conkr
) EXiHE
6oUrCe_code
impO un?t ksE
def
even-num ber (1. s)
for Tn onge (len n)),
fe sC77 2FO

eue
evan alye
clay TeA+un t
def est-ev enTeJ} Cau e),
def

ts
numbey ( leif ):
(2 , 6,18,2.l
pfteNen num) bey (1s))
serf. aM ex t eqval (Tve) even
unft kat -
num bey/s
-

Maint)
TWe

Raun HA

D)goithm
2 excak a
fnRon evene whithtales
3) Creale
a
ching vs
a vafable 'c ="
Viing for loop fkcak ho
5Aad i t s ugn the
snq.
6) e
7 end
50UrLee tode
def teNes
S t I
e [s)

S + S
revxnS
s "MOUDw wovld"
PRn drgînal sRng Is", end." "J
Pint s)
Prnt" Reveral sn
s", xeNene (iN))

ogfnal Cng sHelow Ocrld


ReNenal ch ng ts di
ow ouett

VU wIYaUS.
MVA 6uEL fon
Dwhat fsthe Use OF mu14f threadi na tn
mult hrea dinq in Pythoh 7s Uied Daun
Pyhon,
td aun mul ple
hread a he sameHme ple mul

wiu not Make your


Pyhon dhread. .

Pyogram fay ky
2) what Is Ule s0y.
en encapsvlouhonto pu
Py dhonP
thon
capsolahon Iney dthon 1 dhe
P
Vanables meshods Cep of wyappirq,.
3what axe mvli rhread no no a ingte
single eihy,
entity.
mu hread ed prDqsasn?
PYDqsan?
ox movePqtant
t
n uhfch
o procek Fn h Tch
Par ot dhe Same
sTmolaneously, PDe run
u) what fs local rame Spate?
A local seae
name sdeigned tor
foy aa clau
clas
ntROn a too P ox a bloc oF- COde.

You might also like