Skip to content

Instantly share code, notes, and snippets.

@aerodame
Created January 27, 2025 21:03
Show Gist options
  • Save aerodame/2a5de5a0eb4541f6c7071a92255ade1f to your computer and use it in GitHub Desktop.
Save aerodame/2a5de5a0eb4541f6c7071a92255ade1f to your computer and use it in GitHub Desktop.
public class OSTask_RRTest {
final int default_sleep_time = 10;
final long default_join_wait_time = 1000L;
final long default_burst_duration = 1000L;
final Map<String, Long[]> taskData = new HashMap<>();
{ // Use an initializer block to populate the map
taskData.put("Task A", new Long[]{0L, 5000L});
taskData.put("Task B", new Long[]{0L, 1000L});
taskData.put("Task C", new Long[]{0L, 3000L});
taskData.put("Task D", new Long[]{0L, 6000L});
taskData.put("Task E", new Long[]{0L, 500L});
}
/* ... your RR test(s) */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment