http://www.anandtech.com/bench/Product/699?vs=188
here is a comparison between the FX 6300 and the Athlon X4 640, as you can see the FX 6300 completely trumps the Athlon in all ways and has 6 integer cores to boot! It's definitely a good product and always a recommended buy from me. However, assuming you don't want to dump too much money on an upgrade (if you feel like it's not time to upgrade yet), I kinda want to say pass for now, since the FX 6300 requires an AM3+ motherboard which you may or may not have.
However, if you feel like this is the time to get an upgrade for your PC, I would definitely suggest getting the FX 6300 along with a decent 970 chipset AM3+ motherboard like:
http://www.newegg.com/Product/Product.aspx?Item=N82E16813157262
along with a nice Cooler Master CPU cooler:
http://www.newegg.com/Product/Product.aspx?Item=N82E16835103099
for a good processor/mobo combo that will last you for quite a while, and when the time comes where it's performance is waning a bit (1-2 years I'd wager) you can give it an overclock to juice it up until you are ready for your next upgrade.
An 8 core from AMD is also a good option but only get it if your budget will allow for it, since the last place you want to take money away from is the motherboard.