[Click] Using multithreading in Userlevel
Arpita Agarwal
arpita.agarwal at st.niituniversity.in
Sun Jul 8 23:52:01 EDT 2012
Hi!
I have installed userlevel click with multithreading support using
--enable-user-multithread.
I want to create a program, where i want to distribute certain tasks among
different threads and measure the performance. how do i do so?
This is how i am doing it right now.
is1 :: InfiniteSource(DATA \<00 00 c0 ae 67 ef 00 00 00 00 00 00 08 00
45 00 00 28 00 00 00 00 40 11 77 c3 01 00 00 01
02 00 00 02 13 69 13 69 00 14 d6 41 55 44 50 20
70 61 63 6b 65 74 21 0a>, LIMIT 1000, STOP true)
->Strip(14)
-> CheckIPHeader2
->l1::Lock1 ///this is a dummy element i have created
-> Print(ok)
-> Discard;
is2 :: InfiniteSource(DATA \<00 00 c0 ae 67 ef 00 00 00 00 00 00 08 00
45 00 00 28 00 00 00 00 40 11 77 c3 01 00 00 01
02 00 00 02 13 69 13 69 00 14 d6 41 55 44 50 20
70 61 63 6b 65 74 21 0a>, LIMIT 1000, STOP true)
->Strip(14)
-> CheckIPHeader2
->l2::Lock1
->Discard;
StaticThreadSched(is2 1,is1 2);
But this is not dividing the tasks the way i want to.
I cannot install kernel level click right now.Is there any other way to do
that.
Thanks
Arpita
More information about the click
mailing list