Re: Yes and No
Even with free operating systems, Apple can be sub par depending on which model is bought, although free upgrades is a recent development.
PC wise Vista SP1 (actually usable) was released February 2008, and is supported till 2017, so worst case is nine years of support. An older XP box would receive around 6.5-7 years of support (2007 to April 2014). If you're pedantic and insist Vista was usable out of the door (hoho), that's eleven years.
Looking at 2007 Macs, the August iMacs are still supported. However, anything else that year is stuck on Lion, so that's seven years of support (last patch date, about September 2014) and then the system is junk. Practically any Vista capable PC is capable of running later versions of Windows (yes, chargeable, but cheaper than a new computer).
Absolutely no argument with Android, the situation is disgraceful. If you buy an Android phone that isn't rootable, you are a fool, or should prepare to throw it away in 18 months. If you're lucky, the limit is four years, judging from the Google and Samsung stagefright patches.