A question about arduino mega?

zhirantaha:
Thanks.for replay
I mean that can arduino mega run 2 diffrenet sketch at the same time

There is no microcontroller chip in the world that can run two different sketches at the same time, they all have a single processor that performs a single instruction one at a time. However most all run fast enough that one can run many separate independent user requirements fast enough so that they all appear to be functioning at the same time. You need a better understanding of how microcontroller chips operate and then adjust your thinking about what a sketch can accomplish and how to write a sketch that does all that you require to be done.

Lefty