Hello, welcome back.
And this lesson we going to see how to use always delay to put our tasks and blocked states, always
delay is the V task delay equivalent when using the census.
Artus So I made a copy of our last project here.
The last project was the Thread Terminate Project.
I made a copy of it.
This one is called Fortissimo Societies was delayed.
So this is a not cleaned anything yet.
The only thing I'm going to clean is the part where we, we terminates the task and resume it.
So I'm going to delete these global variables here and then I'm going to go down here.
This is where we make the determination.
I'm going to delete this and I'm going to come down here this where we make the presumption going to
delete this as well.
So what we have now is just a simple.
Our test project, we have four tasks, they all have the same priority, always priority, normal,
priority, normal, normal, normal.
And they are simply incrementing their respective.
Um, profiler's, which is just a global variable, so what I'm going to do is I'm going to give them
different priorities and let's see what we get.
We know what we'd get.
But for those of us who don't know, let's see what happens.
I'm going to keep this one priority to be normal.
This one's priority would be normal, one which is the same as normal priority, plus one, this one's
priority will be no more two.
And this one, no more three.
OK, so yeah, we have.
All of them with different priorities, let's build and see, click over here to build.
OK, we have an anomaly somewhere.
We still have part of the old code.
Oh, we have this year of delay, this this red TASC execution counter.
OK, so it's just a normal ARTUS project for tasks.
With different priorities.
That's all we have.
OK, and then I'm going to debug it, but right clicking.
And then debuggers ASTM 32 and a select number 40 over here.
And I would say, OK.
And then OK, over here.
Then I click to switch.
And then I'll pressure to run in, as we can see, we have just a blue task running.
Why do we have the blue task running?
Because when we check the priorities assignment blue task here has the highest priority, no more plus
three.
So that is why it is the only one running.
OK, so we said we're going to use the always delay here.
So I'm going to let each function call, call, always delay after it performs its increment.
So we start from the first function.
The first task function blue is going to always delay hundred red who do likewise orange as well.
And finally, the green.
OK, so click here to build.
It's built successfully.
Click here to go to the debugger.
And then click here to switch.
And click here to run now, as you can see, they're all running basically austerely, it's just like
V task delay.
It takes the.
Did the task to the states, so that's all there is, this is very short, our Simms's artists project
will be very, very short because we've already dealt with all of the components.
We simply showing how to use them in some societies, that's all.
So I'll see you later.
Have a nice day.