NEW YORK — Computers in companies, hospitals and schools around the world got stuck repeatedly rebooting themselves Wednesday after an antivirus program identified a normal Windows file as a virus. McAfee confirmed that a software update it posted at 7 a.m. MDT caused its antivirus program for corporate customers to misidentify a harmless file. It has posted a replacement update for download.

Online posters said thousands of computers running Windows XP with Service Pack 3 were rendered useless.

About a third of the hospitals in Rhode Island stopped treating patients without traumas in emergency rooms and postponed some elective surgeries, said a spokeswoman for the Lifespan system of hospitals. The Associated Press