Here’s another quick description of what happens in your engine:
Remember this phrase - “Suck, squeeze, bang, blow” (intake, compression, power, exhaust). That’s how I used to teach the 4-stroke cycle to student pilots in ground school.
Basically, this is what happens. There are two valves on top of the engine. One is an intake valve, and the other is an exhaust valve. There are a number of cylinders, with pistons moving up and down inside them. These pistons are connected to a crankshaft, which delivers the engine power to the rest of the drivetrain.
-
“Suck”
When the piston is at the top of the cylinder, the intake valve opens, and a mixture of air and fuel is injected into the cylinder (or sucked in) as the piston moves downwards.
-
“Squeeze”
Then the intake valve closes. The piston then begins to move back up, compressing the fuel/air.
-
“Bang”
When the piston reaches approximately the top of the cylinder, the spark plug fires and ignites the mixture. The expanding gases force the cylinder back down again. This is the power stroke, and creates the force that not only drives the vehicle, but forces other pistons up in the compression stroke. (The pistons are offset on the crankshaft, so that when one is in the power stroke, another is in the intake stroke and yet another is in the exhaust stroke, etc.)
-
“Blow”
Finally, the exhaust valve opens, and the piston goes up the cylinder, forcing the spent gases out. The intake valve then opens, and the whole process starts over.
You can see that there is some intricate timing involved here, and that’s where the camshaft, fuel injection, and spark plug timing comes in. The camshaft is connected to the crank, and will spin at the proper rate to ensure that the valves open and close when they should. Another timing system controls when the spark plugs fire, and yet another controls how the fuel is injected into the cylinders (or it may simply be drawn in by the vacuum created when the piston moves back down the cylinder). These timings are critical and all can be adjusted (for example, the intake valve typically will stay open slightly longer than when the piston hits dead bottom, because the inertia of the air will draw in a bit more fuel).
That’s your basic engine, and closely describes an older 4-stroke engine like you might find in a '67 chevy. Modern engines have all kinds of other details, like emissions controls, 4-valves per cylinder to improve air and fuel flow, etc. But the basic engine is still the same.
If you use an overhead cam you can get rid of pushrods and other mechanical componenents, which lowers the amount of intertia and friction inside the engine, making it more efficient and faster revving.
Modern engines are typically built with 4 cylinders in one straight line, and a single overhead cam works fine for those. But if you want more than four cylinders, you often want to place them in 2 rows of 3 or 4, because it makes the engine more compact and also cuts down on vibration. These rows are going to either be in a V shape (as in V-6 or V-8), or possibly horizontally opposed. In a V-style engine, you can get even greater efficiency by giving each row of cylinders its own camshaft. That’s your DOHC, and it further cuts down on internal complexity and friction.