### Question:
RateLimiterUtils { public static void useRateLimiter(){ ExecutorService executorService = Executors.newFixedThreadPool(5); RateLimiter rateLimiter = RateLimiter.create(10); AtomicInteger num = new AtomicInteger(0); executorService.execute(() -> { while (true && !Thread.currentThread().isInterrupted()) { rateLimiter.acquire(); System.out.println(num.incrementAndGet()); MyThreadUtils.sleepMillis(10); } }); MyThreadUtils.sleepSencond(10); System.out.println("预期达到100，实际达到" + num.get()); }  static void useRateLimiter();  }### Answer:
@Test public void test(){ RateLimiterUtils.useRateLimiter(); }