What factors influence the stability of synovial joints? Discuss each of these with reference to the shoulder and the knee joints.

What factors influence the stability of synovial joints? Discuss each of these with reference to the shoulder and the knee joints.