Modern operating systems and viruses/trojans/worms etc.
How do modern operating systems (Windows 10 and the latest versions of linux distributions) an make it difficult/impossible for (certain type of) viruses to infect the computer or to function at all? I am looking for an exhaustive information on this topic. I know that Windows 10 comes with Windows Defender. But is this the only development from the older versions of Windows? Maybe, there is some more changes about how the operating system utilizes the memory and CPU which makes things difficult for viruses?
Sending a link to an article etc. can also be of help.