Boil spaghetti in salted water for 6-8 minutes.Heat olive oil in a small pan over low heat. When oil is warm, add choppedgarlic, pepper flakes, salt and pepper. Cook, stirring, until garlic is lightlycolored, then remove pan from the heat.When pasta is just done, drain and return to pot. Stir the walnuts into the garlic and oil and pour over pasta, tossing well. Add parsley and serve immediately.