Well, sure there is, the OS does it. Although doing it yourself in your own process without using the OS services is a bit hard.
There was an old book, called Born to Code in C by Herbert Schildt, that had a rudimentary multi-threading mechanism implemented in C and running in the same process.