[OpenAFS-devel] LWP probs........

Neeraj Chourasia Neeraj Chourasia" <neeraj_ch1@rediffmail.com
17 Aug 2004 07:47:59 -0000


 This is a multipart mime message


--Next_1092728879---0-202.54.124.145-20561
Content-type: text/html;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<P>=0Ahi friends,<BR>=0A&nbsp;  I am tinkering with test program given in a=
fs/src/lwp/. Since LWP threads are priority based,non preemptive scheduling=
, how can i exploit&nbsp; parallelism out of it.Say if i initiate threads i=
n JAVA,JVM scheduler takes care of its scheduling...while in LWP,threads vo=
luntarily relinquish its claim on cpu. So its as good as having a single pr=
ocess doing task serially.<BR>=0A&nbsp;  Could anyone explain me, how can i=
 run 2 threads in parallel which are mutually exclusive say one thread prin=
ts 1-100 and other&nbsp; from 100-200? Basically how AFS does managing of L=
WP threads when say 4 RPC request comes simultaneously(asynchronously)?<BR>=
=0A<BR>=0A<BR>=0ARegards<BR>=0ANeeraj&nbsp;  <BR>=0A=0A</P>=0A<br><br>=0A<A=
 target=3D"_blank" HREF=3D"http://clients.rediff.com/signature/track_sig.as=
p"><IMG SRC=3D"http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.redi=
ffmail.com/inbox.htm@Bottom" BORDER=3D0 VSPACE=3D0 HSPACE=3D0></a>=0A
--Next_1092728879---0-202.54.124.145-20561
Content-type: text/plain;
	charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

hi friends,=0A   I am tinkering with test program given in afs/src/lwp/. Si=
nce LWP threads are priority based,non preemptive scheduling, how can i exp=
loit  parallelism out of it.Say if i initiate threads in JAVA,JVM scheduler=
 takes care of its scheduling...while in LWP,threads voluntarily relinquish=
 its claim on cpu. So its as good as having a single process doing task ser=
ially.=0A   Could anyone explain me, how can i run 2 threads in parallel wh=
ich are mutually exclusive say one thread prints 1-100 and other  from 100-=
200? Basically how AFS does managing of LWP threads when say 4 RPC request =
comes simultaneously(asynchronously)?=0A=0A=0ARegards=0ANeeraj   =0A
--Next_1092728879---0-202.54.124.145-20561--