6089N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 6089N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6089N/A * This code is free software; you can redistribute it and/or modify it 6089N/A * under the terms of the GNU General Public License version 2 only, as 6089N/A * published by the Free Software Foundation. 6089N/A * This code is distributed in the hope that it will be useful, but WITHOUT 6089N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 6089N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 6089N/A * version 2 for more details (a copy is included in the LICENSE file that 6089N/A * You should have received a copy of the GNU General Public License version 6089N/A * 2 along with this work; if not, write to the Free Software Foundation, 6089N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 6089N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 6089N/A * or visit www.oracle.com if you need additional information or have any 6089N/A * Portions Copyright (c) 2012 IBM Corporation 6089N/A * @summary SelectionKey.interestOps does not update interest set on Windows. 6089N/A // thread that will be changing key[0].interestOps to OP_READ | OP_WRITE 6089N/A for (
int k =
0; k <
15; k++) {
6089N/A for (
int i =
0; i <
10000; i++) {
6089N/A // wake up main thread doing select() 6089N/A // wake up main thread doing select() 6089N/A // wake up main thread doing select()