Osmotic pressure can inhibit microbial growth by altering the flow of water out of the cell (b, above).  Salting and sugaring of foods are commonly employed preservation techniques.  Fungi can tolerate hypertonic environments to a much greater extent than bacteria, however, so foods can still go bad if stored for an extended period of time.