Bitcoin's difficulty adjusts itself automatically according to the amount of hashing power available. Since not every miner has the same profit margin, they may be shutting off and turning on at different times. Because of this in the end only the most efficient miners will be mining.
In case there is a sudden drop in mining profitability (like say after the 2011 bubble), a lot of miners might drop off the network. As long as some of them still mine (those that are in for the long run and the idealists that will mine no matter what at the very least), that won't harm the network. The block generation might slow down for 2 weeks, but after the amount of hashing power stabilizes, everything will go back to normal. Bitcoin is a self-correcting system.
So as long as the amount of hashing power that suddenly drop out of the network is not really big, Bitcoin will be unaffected in the long run.
Non profitable means there is too much processing power already. – Stéphane Gimenez – 2013-06-18T12:52:54.190
1which is there because it is profitable. Unless you plan to support it out of charity ? – user5618 – 2013-06-18T12:53:30.413
2If no one mines, mining will be profitable again. That's what the difficulty is about. – Steven Roose – 2013-06-18T14:34:49.743
Besides, Bitcoin is more than only mining. Eventually, only a small part of the big Bitcoin community will mine, while the others use it for what it's meant to be used. As a payment option and a currency. – Steven Roose – 2013-06-18T14:36:12.747
People are still building GPU rigs? I suppose it happens -- especially if a person isn't aware of what ASICs bring to the table) but probably this isn't occurring in any significant number anymore. – Stephen Gornick – 2013-06-18T20:14:36.260
3Nobody goes to that restaurant, it's too crowded. – David Schwartz – 2013-06-19T17:54:38.523