My question involves labor and employment law for the state of: Texas

I am working full time (W2 employee) as Sr Software Engineer for a telecommunications company. And I work-from-home all the time. Work load is very minimal. Now, I have an offer from another consulting company as Software Engineer (Full time job, as W2 employee) where I am required to work-from-home as well. I am sure I can easily manage working for these two employers at the same time.

My work status is Green Card EAD. Work load wise: I am sure I can easily manage the above two jobs.

I just want to know is this legal to work for 2 employers at the same time?
And is there a way my 2 employers can find out about another jobs while running payroll or while generating W2 forms, etc?

Please share your thoughts - any inputs would really help me decide.....