This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
#include <sys/time.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
main(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.Pipe; | |
import java.nio.channels.Pipe.SinkChannel; | |
import java.nio.channels.Pipe.SourceChannel; | |
public class ThreadSwitch { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pth.h> | |
#include <stdio.h> | |
#include <sys/time.h> | |
pth_uctx_t u_main; | |
pth_uctx_t u_test; | |
char stack[16*1024]; | |
void test(void *); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class KillTheGarbageCollector { | |
private List<String> outerStore = new ArrayList<>(1_000_000); | |
private List<String> oldStore = new ArrayList<>(1_000_000); | |
private static int nThread = 3; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo.invoke; | |
import java.lang.invoke.*; | |
import java.lang.reflect.Method; | |
@SuppressWarnings("unused") | |
public class TestSimple { | |
public static final int LOOPS = 100000000; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo1 | |
import com.espertech.esper.client.EventBean | |
import com.espertech.esper.client.EPAdministrator | |
import com.espertech.esper.client.UpdateListener | |
import com.espertech.esper.client.EPListenable | |
import com.espertech.esper.client.EPServiceProvider | |
object EsperUtil { |
NewerOlder