Can you use one hundred percent IO and CPU at the same time?

The question asked by the interlocutor in the interview. I always thought this was a stupid question.

Suppose one processor, not dual-core.

+3
source share
4 answers

Yes, if DMA is not available. In this case, you can use the CPU to move data from I / O to I / O through the central memory, if the I / O bandwidth on both devices is high enough, you can saturate the CPU efficiently.

+3
source

Yes. A simple one has two processes that use the entire processor, and another that uses all the I / O. It will do it. The real problem is what I / O is talking about. There are several buses in any system, and they can all be connected at any given time.

+2
source

I would also like to find places where IO devices will be virtualized and encrypted. This is probably an unusual case, but not an impossible case.

0
source

Yes, you can! (Sounds like a clichΓ©?) But in fact there is such a thing as not blocking I / O. You can do many things as long as your data uses 100% IO.

0
source

All Articles