Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 700 for Threads (0.5 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java

                // Create multiple threads to call size()
                Thread[] threads = new Thread[10];
                for (int i = 0; i < threads.length; i++) {
                    threads[i] = new Thread(() -> {
                        for (int j = 0; j < 1000; j++) {
                            assertEquals(expectedSize, buffer.size());
                        }
                    });
                    threads[i].start();
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/EmptyIteratorTest.java

                    });
                    threads[i].start();
                }
    
                // Wait for all threads to complete
                for (Thread thread : threads) {
                    thread.join();
                }
            }
    
            // Then
            for (int i = 0; i < threadCount; i++) {
                assertTrue(results[i], "Thread " + i + " should have completed successfully");
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransPeekNamedPipeTest.java

            Thread[] threads = new Thread[10];
    
            // Act
            for (int i = 0; i < threads.length; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    results[index] = transPeekNamedPipe.toString();
                });
                threads[i].start();
            }
    
            for (Thread thread : threads) {
                thread.join();
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/Striped64.java

       * there would exist a perfect hash function mapping threads to
       * slots that eliminates collisions. When we reach capacity, we
       * search for this mapping by randomly varying the hash codes of
       * colliding threads.  Because search is random, and collisions
       * only become known via CAS failures, convergence can be slow,
       * and because threads are typically not bound to CPUS forever,
       * may not occur at all. However, despite these limitations,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jan 15 22:17:15 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

                return b.toString();
            }).collect(Collectors.joining(",")));
            buf.append("},");
            final Threads threads = jvmStats.getThreads();
            buf.append("\"threads\":{");
            append(buf, "count", () -> threads.getCount()).append(',');
            append(buf, "peak", () -> threads.getPeakCount());
            buf.append("},");
            final Classes classes = jvmStats.getClasses();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java

            // Test thread safety - multiple threads accessing the same response
            final int THREAD_COUNT = 10;
            Thread[] threads = new Thread[THREAD_COUNT];
            final boolean[] success = new boolean[THREAD_COUNT];
    
            for (int i = 0; i < THREAD_COUNT; i++) {
                final int index = i;
                threads[i] = new Thread(() -> {
                    try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                }
    
                // When
                for (Thread thread : threads) {
                    thread.start();
                }
                for (Thread thread : threads) {
                    thread.join();
                }
    
                // Then
                for (int i = 0; i < threadCount; i++) {
                    assertTrue(success[i], "Thread " + i + " failed");
                }
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationTest.java

                        success[index] = false;
                    }
                });
                threads[i].start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                thread.join();
            }
    
            // All threads should complete successfully
            for (boolean s : success) {
                assertTrue(s);
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationTest.java

                        success[index] = false;
                    }
                });
                threads[i].start();
            }
    
            // Wait for all threads to complete
            for (Thread thread : threads) {
                thread.join();
            }
    
            // All threads should complete successfully
            for (boolean s : success) {
                assertTrue(s);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

        void testConcurrentLogging() throws InterruptedException {
            int threadCount = 10;
            int eventsPerThread = 100;
            Thread[] threads = new Thread[threadCount];
    
            for (int i = 0; i < threadCount; i++) {
                final int threadId = i;
                threads[i] = new Thread(() -> {
                    for (int j = 0; j < eventsPerThread; j++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
Back to top