Hollywood studios and the union representing some 160,000 actors have reached a tentative agreement to end a 4-month long strike.