Hollywood writers reached a tentative agreement with major studios on the 146th day of their strike, signifying a possible end to the entertainment-industry paralysis.