Communist PM of resistance to Germany was Josip Broz Tito (1943-1945) he was chairman of National Committee for Liberation of Yugoslavia who worked in opposition to Royal governments in exile.
Communist Yugoslavia
In SFRY, each republic had its own constitution, supreme court, parliament, president and prime minister. At the top of the Yugoslav government was a collective Presidency, the federal Prime Minister, and the federal Parliament.
The role of the prime minister was diminished by the fact there existed various other positions of importance, both nominal and effective. See also: history of Yugoslavia.
In some monarchies the primeminister exercises powers (known as the Royal Prerogative) which are constitutionally vested in the Crown and can be exercised without the approval of parliament.
The post of primeminister is one which may be encountered both in constitutional monarchies (such as Belgium, Denmark, Japan, the Netherlands, Norway, Spain, and the United Kingdom), and in republics in which the head of state is an elected (such as France) or unelected official (such as Germany) with varying degrees of real power.
Contrary to popular and journalistic myth, most primeministers in parliamentary systems are not appointed for a specific term of office and in effect may remain in power through a number of elections and parliaments.