You can reduce your risk of chondromalacia by preventing knee injuries and overuse of your knee joints. To do this:
Warm up and stretch before you participate in athletic activities.
Do exercises to strengthen the leg muscles around your knee, especially the muscles in your thigh called the quadriceps.
Increase the intensity of your training program gradually. Never push yourself too hard, too fast.
Wear comfortable, supportive shoes...