Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
This question already has an answer here:
How can I fill a normal circle with rotated stripes in Adobe Illustrator?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
If you want the black lines to be even (ie. not taper at the ends), another option is to used a stroked dash. Here's what I did:
You make a star shape with many faces like this.
You add 2 circles, position them where you need them, centered with the star. Use the Pathfinder tool to crop out the bits you dont need.