Yes, you can do this. Check out threads.

Cudabean