Hi Eftikhar,

Ryu is single-thread model using kernel-thread in "OS-level". However, it
is multi-thread using userland-thread (a.k.a coroutine, green-thread)
actually. (Ryu's userland-thread is "greenlet" library)

And Ryu's application works in event driven using "eventlet" library.
Therefore, Ryu's application can handle multiple switches in single-thread
(userland-thread).

2015-03-10 7:12 GMT+09:00 Eftikhar <[email protected]>:

> when I create a topology with multiple switches, I need a different thread
> of Ryu to handle this switch, separately.
> from what I read, Ryu is a  Single-threaded controller, and threading is a
> available for application tasks.
>
> I hope you can get my point.
>
> Regards,
>
> ________________________________________
> From: FUJITA Tomonori <[email protected]>
> Sent: Monday, March 9, 2015 10:04 PM
> To: Eftikhar
> Cc: [email protected]
> Subject: Re: [Ryu-devel] Ryu threading
>
> On Mon, 9 Mar 2015 21:24:33 +0000
> Eftikhar <[email protected]> wrote:
>
> > I am Looking for a way to create instances of RYU controller, each
> instance (thread) handle a separate switch.
> > Is there any capability to achieve this ?
>
> It depends on what your 'thread' means. Ryu creates multiple "Python"
> threads per switch.
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>



-- 
Satoshi KOBAYASHI <[email protected]>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to