Sun Microsystems Inc. has entered into a "broad cooperation agreement" with Microsoft Corp. and settled all outstanding litigation, it said Friday. The company also announced that it has promoted its software head Jonathan Schwartz as the company's new president and chief operating officer.