This section explains what to expect from anesthesia when you have surgery to replace your hip or knee.