You can run two comm ports, you can run them seperately with their own threads (tasks), you can assume that all MQX RToS functions are thread safe and re entry safe unless otherwise specified.
Looks like you probably need to do some research on programming multithreaded systems. Maybe start by reading the MQXUG.pdf