[cs33211] Re: Project 1 Question

Mikhail Nesterenko mikhail at cs.kent.edu
Sat Mar 7 17:55:03 EST 2009


> Hi, i'm having trouble passing anything but an int using pthreads. I'm just
> wondering if you have any sort of hints to passing a character or string.

Arbitrary types can be accessible as global data structures. Check
this example

http://deneb.cs.kent.edu/~mikhail/classes/os.s09/Threads_Examples/hello_arg.cpp

and observe how individual threads access strings to print out
greetings on various languages.

Thanks,
-- 
Mikhail


More information about the cs33211 mailing list