Question special

For medical residents who have gone through the hoops of applying to college, medical school, and residency, applying for a sub-specialty fellowship is fairly straightforward in terms of timelines and requirements (

But for residents applying for a first job as an attending, when do they need to start the process of looking for posts and what sort of timeline should they plan for?