[Click] Using multithreading in Userlevel

Eddie Kohler ekohler at gmail.com
Wed Aug 8 09:10:35 EDT 2012


Hi Arpita,

I think you may have meant "StaticThreadSched(is2 0, is1 1)"

Threads are numbered started from 0.

Eddie


On 7/8/12 11:52 PM, Arpita Agarwal wrote:
> 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
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>


More information about the click mailing list