IOS XR runs on QNX and tends to be used on routers in a carrier role.
IOS XE runs on Linux and tends to be used on service/aggregation routers.