The stock capabilities of linux or windows as realtime os for hard rt systems are comparable and fairly poor. Which is why there are dedicated realtime operating systems.