A double-headed piston type compressor forms a first compression chamber
and a second compression chamber for compressing gas. The compressor has
rotary shaft having an inner chamber that interconnects a suction chamber
and the first and second compression chambers for introducing the gas
into the first and second compression chambers. The compressor also has a
partition wall that is located in the inner chamber for dividing the
inner chamber into a first passage and a second passage. The first
passage interconnects the suction chamber and the first compression
chamber. The second passage interconnects the suction chamber and the
second compression chamber.