Find Jobs
Hire Freelancers

multi-threaded C/C++ program

$10-30 USD

Terminado
Publicado hace más de 6 años

$10-30 USD

Pagado a la entrega
the program should create a number of threads and have each thread test a portion of the numbers for primeness. That is, suppose the user enters the value 5000. And one thread finds the primes between 0 and 1000, and another thread finds the primes between 1000 and 2000 etc. in C++ has a set class that is very similar to the TreeSet that is in the Java library. It is a templated class so when you declare a set you have to give the type of data that the set will hold. So you might say: set<int> example; Your threads will be testing integers to see if they are prime. If a number is prime it should be added to your set. The C++ set class is implemented using a tree in the same way that the Java TreeSet is implemented. The data in the set is kept in sorted order. Each time you insert a new value into the set the set is modified and pointers are changed. Therefore adding an element to a set is a critical section and can be protected with a mutex.
ID del proyecto: 15455192

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 6 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
expert in c++ and Java, written many multi threading applications , this is VERY simple. Relevant Skills and Experience c++ expert, multi threading game design Proposed Milestones $50 USD - whole project
$50 USD en 1 día
4,8 (4 comentarios)
2,4
2,4

Sobre este cliente

Bandera de UNITED STATES
New Rochelle, United States
5,0
3
Forma de pago verificada
Miembro desde oct 18, 2017

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.