これまでの章で取り上げたデータ構造はロックやCAS等の同期プリミティブを使っている:
- 現在の種類
- これらを使って効率的なデータ構造を実装することは可能
- ただし欠点も多い
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <immintrin.h> | |
static volatile double zr = 0.0; | |
static volatile double zi = 0.0; | |
static const double cr = 0.1; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <immintrin.h> | |
static volatile double zr = 0.0; | |
static volatile double zi = 0.0; | |
static const double cr = 0.1; |
import java.nio.file.{ FileSystem, FileSystems, WatchKey, WatchService, StandardWatchEventKinds } | |
import java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY | |
import scala.collection.JavaConverters._ | |
import scala.concurrent._ | |
import ExecutionContext.Implicits.global | |
object Main { | |
def main(args: Array[String]) { | |
FileWatcher("/tmp/build/classes", "hoge.html").watch { | |
println("change") |
/* It will eat your memory | |
* But if you insist, compile it with: | |
gcc -pthread -fgnu-tm -mcx16 -o transaction_bomb transaction_bomb.c | |
*/ | |
#include <pthread.h> | |
#include <stdio.h> | |
#include <stdlib.h> |
2015/07/24 関数型Scalaの集い
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
iunmap, |