pretgroup / forec Goto Github PK
View Code? Open in Web Editor NEWTools developed for the ForeC synchronous parallel language
License: GNU General Public License v3.0
Tools developed for the ForeC synchronous parallel language
License: GNU General Public License v3.0
The pause
s in the main
thread do not have forec:scheduler:counter:start
and forec:scheduler:counter:end
blocks where the observed WCRT is tracked and printed out
Shared arrays are not yet supported by the compiler. The first step is to support the (coarse grained) sharing of the array variable. Second step is to support the (fine grained) sharing of array slices.
For debugging purposes, e.g., determining the state of shared variable values, a side-effect free, user-defined print function should be allowed to execute at the very end of each global tick.
User defined function could be called globalTickPrintf(...)
.
ForeC programs are compiled as standalone programs with no interface with its environment, i.e., the programmer has to manually implement reading and writing to external variables or I/O ports inside global ticks. This should be handled by the global tick scheduling routine, e.g., via interprocess communication over shared memory (sys/shm.h
).
Compiler does not detect that state
is shared among multiple threads.
#include <stdio.h>
int state = 0;
int* state_p1 = &state;
int* state_p2 = &state;
// Thread
thread hello(void) {
*state_p1 = 5;
printf("%d\n", *state_p1);
}
// Thread
thread world(void) {
*state_p2 = 10;
printf("%d\n", *state_p2);
}
// Function main: The entry point of the program.
int main(int argc, char **argv) {
par(hello, world);
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.