I have to agree with SA - this is far too big a subject for a Quick Answer, even if you ignore the language specific parts.
Time to start reading:
Wikipedia[
^] does a good overview of threading and what threads are. For more detail, most good development teaching books devote a chapter (or three) to teh subject.