Yes, you can. You can easily create time-delayed threads to execute
actions. Just make them sleep for a specific time.

On 5 September 2017 at 08:49, Attitude Killer <attkillro...@gmail.com> wrote:
> Can Anyone please tell me if What I am trying to achieve using Thread can be
> achieved or no?
>
> Thank you
>
>
> On Mon, Sep 4, 2017 at 7:40 PM, Attitude Killer <attkillro...@gmail.com>
> wrote:
>>
>> Hi
>>
>> I am writing a Ryu application in which I have if else statement for
>> packet_in. If a condition satisfies for the first time, then it should start
>> the timer till 10 seconds, within these 10 seconds there will be other
>> packets arriving as well, matching the same condition but I don't want to
>> start the timer every time a condition is satisfied(within these 10
>> seconds). In short, the timer should run in parallel.
>>
>> I have used a thread for this but it is not working fine. A new thread
>> starts every time a new packet arrives but I want only 1 thread to start
>> till 10 seconds or any no. of seconds without starting a new thread when a
>> new packet arrives.
>>
>> I am attaching the code. Also, I attach a screenshot of running scapy
>> traffic generator with the commands I am using.
>>
>> Please help me.
>>
>> Thank You
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>


Carlos Miguel Ferreira

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to