caltechcs2 / concurrency Goto Github PK
View Code? Open in Web Editor NEWAssignment 6
Assignment 6
We should update the following section of the assignment, since we use std::thread now.
And, I'm not sure if the "You cannot call a member function from a thread directly" comment is still true. If it isn't, perhaps we should remove this hint entirely.
Helpful hints
You cannot call a member function from a thread directly; if this is something you would like to do, you will need to wrap it in a non-class function first, like this:
class Foo
{
Foo() { }
~Foo() { }
void f() { /* Do something interesting here. */ }
};
void *f_wrapper(void *arg)
{
Foo *fptr = (Foo *) arg;
fptr->f();
}
Foo *f = new Foo();
Thread *t = new Thread();
t->run(f_wrapper, (void *) f);
Changes to assignment writeup as discussed in TA meeting 2016/2/19:
The make memcheck
produces output that is tedious to interpret, and it is not very helpful because avoiding memory leaks in student-written code is not a big challenge in this section.
Instead, we should
make memcheck
as an optional tool; students are still responsible for not leaking memory, but are not encouraged to use make memcheck
This should be done a week or two after the assignment is due (that is, ~Feb 23 - March 1)
As discussed in TA meeting 2016/2/19
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.