<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hola a todos, tengo una dudilla. Estoy programado en C sobre Unix i tengo que crear hilos, entonces uso <br><br>#include <pthread.h><br>int pthread_create(pthread_t *restrict thread, const pthread_attr_t *restrict attr, void *(*start_routine)(void*), void *restrict arg);<br><br>pero la rutina que debe ejecutar mi hilo tiene dos parametros, podriais desirme como lo hago???<br><br>//rutina de mis hilos<br>void Rutina_hilos (int A, int B);<br>// creación de los hilos<br>if((pthread_create(&tid[i], &attr, (void*) Rutina_hilos, (void*) ???)!=0) -->  tengo que pasarle 2 enteros<br><br>podeis ayudarme??<br><br>Gracias a todos de antemano!!!!<br><br><br /><hr />Comparte hasta 500 fotos en un solo email con  <a href='http://download.live.com/' target='_new'>Windows Live</a></body>
</html>