SHANGHAI — Foxconn Technology, a major supplier to several electronics giants, said on Thursday that it had resolved a pay dispute with scores of workers at one of its factories in central China after a large protest that involved threats from some workers to commit suicide.

The company, the largest contract electronics manufacturer in the world, whose clients include Apple, Hewlett-Packard and Microsoft, said the dispute last week had been resolved successfully and peacefully but that 45 workers had resigned.

In a statement released on Thursday, Foxconn said most of the protesting workers had agreed to return to work after negotiations with the company and local government officials. Details of the agreement were not released, but one of the workers said they had been promised additional compensation.

Foxconn said the protest had involved about 150 of the 32,000 employees at its campus in the city of Wuhan. It was the latest incident in a long-running series of labor troubles at the company, which supplies popular goods like the Apple iPhone, the Amazon Kindle and the Microsoft Xbox.