The mechanism was nicely described by FZG, I'd just like to add:
the mechanics of which neurotransmitter will be released. Do the vesicles of each type of neurotransmitter have an energy threshold?
According to this book, one such mechanism is frequency of stimulation (low frequency of action potentials) and subsequent Ca2+ distribution. With low frequency of stimulation, channels closer to the cleft are open, which means, there is higher concentration in the proximity of the cleft. With higher frequency, the concentration in the terminal bud is more equal in the proximity and further away from the synaptic membrane.
Since small neurotransmitters are usually docked closer to the synaptical membrane, low frequencies of stimulation are sufficient to increase Ca2+ in this area and release them, without changing the concentration of Ca2+ farther from the membrane, where the bigger neuropeptides are docked. They need therefore higher frequencies (as described above) to be released too. Picture.
If yes, when the highest energy threshold of a vesicle is achieved, does this mean all the other vesicles will release the encapsulated neurotransmitters?
As for the threshold, there has to be enough Ca2+ cations to activate the synaptotagmin, which is why the mechanism described above is working. However, there are few types of synaptotagmins, which have different affinities to Ca2+, which could be a another mechanism, if vesicles containing different neurotransmitter bound different synaptotagmins, but this is just a hypothesis as far as I know, maybe someone will know better here :)
The model in Fig. 3proposes that at least Syts 1, 2, 3, 6, and 7 perform complementary functions in Ca2+-triggered exocytosis whereby Ca2+ binding to each class of synaptotagmins contributes differently to triggering exocytosis
Source