During the decolonization period, why did some states like Ghana and India get independence through nonviolence while others like Vietnam and Algeria got independence after years of bloody warfare?

by George_S_Patton_III
fusionsc2

Additional question: to what extent did the Irish example stand out in the context of the rest of the British empire?