You cannot have a process without creating at least one threadof execution, thus there is no advantage of one over the other. Aprocess is simply a collection of one or more threads where allthreads share the same memory address space but where each threadhas its own local stack.The advantage of using multiple threads over a single thread isthat multiple threads can take advantage of multiple CPU cores andthus execute two or more threads concurrently.To use a simple example, suppose you wish to search an unsortedcontainer. Being unsorted, a linear search is the optimum algorithmto use, but this has a worst case execution time of O(n) for nelements. However, if you have 2 CPU cores available, each core cansearch half the container concurrently, reducing the worst-casesearch time by up to a half: O(n/2). With 4 cores, the worst-casesearch time reduces by up to half again: O(n/4).